thecase Posted June 3, 2013 Share Posted June 3, 2013 Hi I have this date in my database 11/06/2013 12:00 This is my code and the format I would like it in $dateformatstart = date_format(date_create($row['datestart']), 'D j M y H:i'); Although it comes back as Wed 6 Nov 13 12:00, Think the month is the day and day is the month I don't know why Link to comment https://forums.phpfreaks.com/topic/278698-time-format-issue/ Share on other sites More sharing options...
Jessica Posted June 3, 2013 Share Posted June 3, 2013 Is your field a DATETIME type? If not, fix that first. That date IS November 6th. Link to comment https://forums.phpfreaks.com/topic/278698-time-format-issue/#findComment-1433729 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.