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 DATETIME type. Ifformat specifies a date, a DATE value is returned.
NULL is returned if str or format is NULL.
Examples
Example 1: Convert the input into a DATETIME value.Text
Text
Text