mysql timestamp to date
snippet in sql

mysql timestamp to date

user1807

-- Use the FROM_UNIXTIME() function in MySQL
select from_unixtime(timestamp) from my_tbl;

mysql timestamp format

user1154

INSERT INTO ... VALUES ('YYYY-MM-DD HH:MM:SS');