Home Forums Plugin Support WP User Frontend Pro Date picker formating

This topic is: resolved

This topic contains 4 replies, has 2 voices, and was last updated by  residencyunlimited 6 years, 1 month ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #2564

    residencyunlimited
    Participant
    Post count: 18

    Is it possible to publish the date picker custom field as:    Month Date, Year   instead of the numerical 00/00/2013?

    i.e April 18th, 2013

    thanks

    #2580

    Tareq Hasan
    Keymaster
    Post count: 2831

    You can use `MM d, yy`, ex: April 16, 2013. I don't see how to get the “th” in here.

    #2589

    residencyunlimited
    Participant
    Post count: 18

    thanks Tareq,

    but where would I implement this.. my single.php?

    or in a wpuf file?

    thanks for your support.

    S

    #2590

    Tareq Hasan
    Keymaster
    Post count: 2831

    Oh, I thought you want the datepicker formatting like this. In the datepicker custom field, you can use that format. Or if you want only show the date by PHP, you could use this in your single.php. Choice is yours.
    [php]echo date( ‘F jS, Y ‘, strtotime( get_post_meta( $post->ID, ‘meta_key', true ) ) );[/php]

    #2707

    residencyunlimited
    Participant
    Post count: 18

    that solved it..  thanks tareq!

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘Date picker formating’ is closed to new replies.