jamess Posted July 17, 2009 Share Posted July 17, 2009 I have a date in this format in my database: 1247823445 How do i turn this into somthing like 'Friday, 10:30 AM'? Cheers, James Link to comment https://forums.phpfreaks.com/topic/166299-solved-change-date-format/ Share on other sites More sharing options...
GingerRobot Posted July 17, 2009 Share Posted July 17, 2009 MySQL? Use the DATE_FORMAT() function. Link to comment https://forums.phpfreaks.com/topic/166299-solved-change-date-format/#findComment-876967 Share on other sites More sharing options...
jamess Posted July 17, 2009 Author Share Posted July 17, 2009 echo $row['subject'] . " - " . date('l j F', $datetime); Link to comment https://forums.phpfreaks.com/topic/166299-solved-change-date-format/#findComment-877073 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.