Syntax
Parameters
str: the time expression you want to convert. It must be of the VARCHAR type.
format: the format used to return the value. For the supported format, see date_format.
Return value
Returns a value of the DATE type. NULL is returned ifstr or format is NULL.