I have a bunch of dates in our database stored in the standard mysql date type.
How can I covert a year to 2013, regardless of original date.
So if a date
If its a date field:
UPDATE table_name SET date_field_name = CONCAT("2013", RIGHT(date_field_name,6));
If its a date time field:
UPDATE table_name SET date_field_name = CONCAT("2013", RIGHT(date_field_name,15));