danielchen Posted June 2, 2015 Share Posted June 2, 2015 Hallo Everybody, Can anybody help me to change a datetime data content into another new column with a datetime mysql format... I attach more information in the follow images...thanks in advance for the help Quote Link to comment Share on other sites More sharing options...
Barand Posted June 2, 2015 Share Posted June 2, 2015 (edited) Being from the UK I assume your current dates are dd/mm/yyyy (impossible to tell from your date samples) so adjust as necessary. UPDATE tablename SET fecha = STR_TO_DATE(`Date/Time`, '%d/%m/%Y %H:%i:%s') Edited June 2, 2015 by Barand Quote Link to comment Share on other sites More sharing options...
danielchen Posted June 5, 2015 Author Share Posted June 5, 2015 It worked thank you so much...Barand Quote Link to comment 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.