I am doing a database migration and I currently have a string column with dates (versus having the optimal datetime field set for these). Is there a function I can call in M
SELECT * FROM mytable WHERE CAST(mydatefield AS DATETIME) >= CAST('2009-01-01' AS DATETIME)
If your dates are in some weird format that MySQL does not understand, use STR_TO_DATE:
MySQL
STR_TO_DATE
SELECT * FROM mytable WHERE STR_TO_DATE(mydatefield, '%Y, %d %m') >= STR_TO_DATE('2009, 01 01', '%Y, %d %m')