QuoteFROM_UNIXTIME(unix_timestamp) , FROM_UNIXTIME(unix_timestamp,format) Returns a representation of the unix_timestamp argument as a value in 'YYYY-MM-DD HH:MM:SS' or YYYYMMDDHHMMSS format, depending on whether the function is used in a string or numeric context. mysql> SELECT FROM_UNIXTIME(875996580); -> '1997-10-04 22:23:00'