Jump to content

Problems with date function.


steven121

Recommended Posts

I am having trouble formating my date. I have saved the date of post into the database and it is saved as 2009-11-24. When i pull the date out i am trying to format this into November 24th 2009 however using the following code i dont get any errors but my date is January 1, 1970

 

$last_post_date = date("F jS, Y", $row['blogDate']);

 

echo $last_post_date;

 

Can anyone help me?

Link to comment
https://forums.phpfreaks.com/topic/182762-problems-with-date-function/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.