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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/278698-time-format-issue/#findComment-1433729 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.