Complete the code to convert the string '2024-06-15' to a date using STR_TO_DATE.
SELECT STR_TO_DATE('2024-06-15', [1]);
The format '%Y-%m-%d' matches the string '2024-06-15' where %Y is year, %m is month, and %d is day.
Complete the code to parse '15/06/2024' into a date using STR_TO_DATE.
SELECT STR_TO_DATE('15/06/2024', [1]);
The string uses day/month/year with slashes, so the format is '%d/%m/%Y'.
Fix the error in the code to correctly parse '06-15-2024' as a date.
SELECT STR_TO_DATE('06-15-2024', [1]);
The string '06-15-2024' has month first, then day, then year, so the format is '%m-%d-%Y'.
Complete the code to parse '15-JUN-2024' into a date using STR_TO_DATE.
SELECT STR_TO_DATE('15-JUN-2024', [1]);
The string uses day, abbreviated month name, and year with dashes. '%b' is for abbreviated month name.
Complete the code to parse '2024 June 15' into a date using STR_TO_DATE.
SELECT STR_TO_DATE('2024 June 15', [1]);
The string has year, full month name, and day separated by spaces. '%B' is full month name, '%d' is day.