I have an issue with this query and cannot figure out where the problem is coming from.
I am trying to run: update earnings_history set
Date_formatted= STR_TO_DATE(
temp_date, '%m/%d/%Y');
to convert my strings to dates, but I get this error.
Error Code: 1292. Incorrect datetime value: '2015-02-29' for column 'Date_formatted' at row 5610
Yet this query: select temp_date from earnings_history where
temp_dateREGEXP '[-]';
finds no rows.
I use the %Y-%m-%d formatted in an entirely different table, yet they seem to be mixing?