refiking Posted November 10, 2009 Share Posted November 10, 2009 When I tried this: date("m/d/Y H:i A", $row['timestamp']) I got 12/31/1969 18:33 PM, so I know the time section is working at least. How can I get the mm/dd/yyyy section to work correctly? Link to comment https://forums.phpfreaks.com/topic/180944-format-timestamp-from-mysql/ Share on other sites More sharing options...
darkvengance Posted November 10, 2009 Share Posted November 10, 2009 I'm sorry but I don't really understand what you mean when you say: How can I get the mm/dd/yyyy section to work correctly? Could you please elaborate? Link to comment https://forums.phpfreaks.com/topic/180944-format-timestamp-from-mysql/#findComment-954637 Share on other sites More sharing options...
Mchl Posted November 10, 2009 Share Posted November 10, 2009 What's in $row['timestamp'] ? Link to comment https://forums.phpfreaks.com/topic/180944-format-timestamp-from-mysql/#findComment-954705 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.