PHP date() function returning incorrect values
I have a timestamp of "1377592503467" stored in a variable and when I pass
it to php's date() function, it returns a value of "1935-05-26 03:04:11".
Hopefully I am missing something obvious; below is my code. The timestamp
represents 2013-08-27 15:57:45 but that's not what is being returned.
$date = "1377592503467";
$formattedDate = date("Y-m-d h:i:s", $date);
Thank you.
No comments:
Post a Comment