Date picker formating

This topic contains 4 reply and 2 voices, and was last updated by residencyunlimited 10 years, 11 months ago
Viewing 4 Posts - 1 through 4 (of 4 total)
Author Posts
April 19, 2013 at 6:55 pm 2564
residencyunlimited 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
April 19, 2013 at 10:35 pm 2580
Tareq Hasan Tareq Hasan

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

April 20, 2013 at 12:38 am 2589
residencyunlimited residencyunlimited

thanks Tareq,

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

or in a wpuf file?

thanks for your support.

S

April 20, 2013 at 12:56 am 2590
Tareq Hasan Tareq Hasan

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]

April 22, 2013 at 4:18 pm 2707
residencyunlimited residencyunlimited

that solved it..  thanks tareq!

Viewing 4 Posts - 1 through 4 (of 4 total)