yyyy-MM-dd HH:mm:ss. It also supports the formats in date_format.
Currently, string_format supports the following formats:
text
Syntax
Parameters
-
unix_timestamp: the UNIX timestamp you want to convert. It must be of the BIGINT type. If the specified timestamp is less than 0 or larger than 253402243199, NULL will be returned. That is, the range for timestamp is1970-01-01 00:00:00to9999-12-30 11:59:59(varies because of timezone). -
string_format: the required time format.
Return value
Returns a DATETIME or DATE value of the VARCHAR type. Ifstring_format specifies the DATE format, a DATE value of the VARCHAR type is returned.
If the timestamp exceeds the value range or if string_format is invalid, NULL will be returned.
Examples
text