Page 1 of 1

Date function not working?

Posted: Sun Jun 03, 2007 4:48 pm
by GeXus
I'm just trying to format a unix time stamp... and this is what I'm getting


Code: Select all

date("F j, Y",'2007-06-03 16:28:30');
Date returned is December 31, 1969

am I missing something here?

Posted: Sun Jun 03, 2007 4:57 pm
by maliskoleather
you arent providing a timestamp to the second paramater.

Code: Select all

date("F j, Y",strtotime'2007-06-03 16:28:30'));

Posted: Sun Jun 03, 2007 4:57 pm
by superdezign