I have a database row whose type is "timestamp". It automatically populates each time a new record has been added with the time of that record's insertion. Right now for one of the records it holds the value:
2010-06-19 18:40:51
I tried to turn this in to a more user friendly format by:
$timeStamp = $row['date'];
$timeStamp = date( "m/d/Y", $timeStamp);
But it returns this:
12/31/1969
I read somewhere that the date function can only be used on unix timestamps, perhaps what I have in my database isn't a proper timestamp and I need to convert it to one first before using the date function on it (?). What is the solution?