STR_TO_DATE¶
STR_TO_DATE(str_val, literal_format_string)
Converts a string value to a Timestamp value given a
literal format string. If a year, month, and day value is
not specified, they default to 1900, 01, and 01
respectively. Will throw a runtime error if the string
cannot be parsed into the expected values. See DATE_FORMAT
for recognized formatting characters.
For example: