Jump to content

[ SOLVED ] - My Date Displays: Dec. 31, 1969


JSHINER

Recommended Posts

When I use the following:

 

echo date("F j, Y",$i);

 

It displays as December 31, 1969

 

When I do:

 

echo "$i";

 

It displays correctly: 2007-03-23, or whatever the date imputted was.

 

I have dates stored in my database as DATE format (0000-00-00) - But I want them to display as March 25, 2007.

 

What am I doing wrong here ?

 

Link to comment
https://forums.phpfreaks.com/topic/43990-solved-my-date-displays-dec-31-1969/
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.