poleposters Posted May 21, 2008 Share Posted May 21, 2008 Hi, I'm having trouble reformatting the date and time from a mysql record. I have a field in my database in a datetime format. I can print the date time in the default mysql format with no problem. But can't seem to convert it to Sunday 4th May 2008 format. Can anyone help. I've read the forums and googled some tutorials but can't seem to find anything. I can display the current time in the desired format but not the database time. Cheers. Link to comment https://forums.phpfreaks.com/topic/106635-help-displaying-date-and-time-from-mysql-record/ Share on other sites More sharing options...
revraz Posted May 21, 2008 Share Posted May 21, 2008 Use date() and strtotime Link to comment https://forums.phpfreaks.com/topic/106635-help-displaying-date-and-time-from-mysql-record/#findComment-546568 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.