How to custom format $post_date
-
Hi there,
I am trying to do exactly the same thing but it does not seem to work.
My code:
echo “
- $post_title – $post->post_date; ?>
- $post_title – mysql2date(‘j M Y’, $post->post_date);
“;
What I get:
“The title” – 2008-10-24 10:22:18
What I want:
“The title” – October 24, 2008
If I change the code to:
echo “
“;
I get:
“The title” – mysql2date(‘j M Y’, 2008-10-24 10:22:18);
Thanks in advance for the help
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘How to custom format $post_date’ is closed to new replies.