timestamp
Returns the DATETIME value of a date or datetime expression.
Syntaxβ
DATETIME timestamp(DATETIME|DATE expr);
Parametersβ
expr: the time expression you want to convert. It must be of the DATETIME or DATE type.
Return valueβ
Returns a DATETIME value. If the input time is empty or does not exist, such as 2021-02-29, NULL is returned.