I am working on a table that has two formats of dates stored in a field some are in mm/dd/yy and the newer entries are in yyyy/mm/dd like they should be.
I want to run an query like this
UPDATE table
SET date_field = DATE_FORMAT(date_field, '%Y/%m/%d')
WHERE date_field = DATE_FORMAT(date_field, '%m/%d/%y')
But it is just not working out. One result that I got was that it was just taking the %m data and turning it into the %Y and really messing up the data.
Any thoughts?