i have a column of Strings like 2015/10/14 07:00:00
i need to convert them to DateTime, my problem is :
07:00 is in pm time
i need to get that in a format of 19:00
my code:
UPDATE `DATE_tests`
SET `newDate` = STR_TO_DATE(`oldDate`, '%Y/%m/%d %r')
to be precise i need 2015/10/14 07:00:00
to be 2015-10-14 19:00:00
.
i can get so far 2015-10-14 07:00:00