Verve Meta Boxes Date Format
-
I am using a date/time custom field created by Verve Meta Boxes and the output works when I add this to my template:
$airtime_begin = get_post_meta($post->ID, ‘airtime_begin’, true);
Then I use the code
echo ‘$airtime_begin’
and the date comes out: 2010-07-05 00:00:00
But when I try to change the format with
echo ‘date(“M j,y”, $airtime_begin)’ all I get is Jan 1, 1970, not the desired Jul 5, 2010.
What am I doing wrong?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Verve Meta Boxes Date Format’ is closed to new replies.