legohead6 Posted February 21, 2007 Share Posted February 21, 2007 ok well i use the Now(); function to insert the time into the database(datetime), then i go to call it with this code and it shows up as december 31, 1969, which i know isnt todays date! can someone please tell me what im doing wrong the inserting to the database works fine, it shows todays date but im trying to format it now $date = date('F j, Y', $row[10]); Link to comment https://forums.phpfreaks.com/topic/39389-solvedechoing-time-from-timestamp-not-working/ Share on other sites More sharing options...
tom100 Posted February 21, 2007 Share Posted February 21, 2007 Try $date = date('F j, Y', strtotime($row[10])); Link to comment https://forums.phpfreaks.com/topic/39389-solvedechoing-time-from-timestamp-not-working/#findComment-189987 Share on other sites More sharing options...
legohead6 Posted February 21, 2007 Author Share Posted February 21, 2007 thanks, that worked Link to comment https://forums.phpfreaks.com/topic/39389-solvedechoing-time-from-timestamp-not-working/#findComment-189989 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.