I have a custom field of Due and am trying to display the date. It is stored as 20131209. I am using
<?php echo date_i18n( get_option( 'date_format' ), strtotime( $Due ) ); ?>
but it just throws out December 1, 2013
I have a custom field of Due and am trying to display the date. It is stored as 20131209. I am using
<?php echo date_i18n( get_option( 'date_format' ), strtotime( $Due ) ); ?>
but it just throws out December 1, 2013
Comments are closed.
The following works correctly for me, returning “December 9, 2013” in my case.
So either …
$Due
is not what you think it is