date("F j, Y", $news[4]);
news[4] contains the following (yes i checked output with ought date and it is this)
Quote
2010-03-17 00:29:07
the output from the code thou is this
Quote
December 31, 1969
I don't understand why it is doing this. any help would be apreciated.
Edit:
I just tried the same with the time and it is returning 6:33 PM instead of the 12:29 AM that it should be
the code for the time is
$myTime = date("g:i A",$time);
Edited by zeroradius, 04 April 2010 - 01:05 AM.


Sign In
Create Account



Back to top









