sql unix timestamp to datetime code example
Example 1: mysql date format unix timestamp
SELECT
FROM_UNIXTIME(timestamp)
FROM
your_table;
Example 2: sql convert unix time to date
select FROM_UNIXTIME(UNIX_TIMESTAMP(),'%a %b %d %H:%i:%s UTC %Y');