FROM_UNIXTIME (timestamp, format type) format the timestamp as the date format, for example, % Y-% m-% d type UNIX_TIMESTAMP (date type) format the date as the timestamp format MySQLSELECTid, title, createdate, FROM_UNIXTIME (UNIX_TIMESTAMP (createdate), % Y-% m-% d) AScreatedate
FROM_UNIXTIME (timestamp, format type) format the timestamp as the date format, for example, % Y-% m-% d type UNIX_TIMESTAMP (date type) format the date as the timestamp format MySQL SELECT id, title, createdate, FROM_UNIXTIME (UNIX_TIMESTAMP (createdate), '% Y-% m-% D') AS createdate
FROM_UNIXTIME (timestamp, format type) format the timestamp as the date format, for example, '% Y-% m-% d' type
UNIX_TIMESTAMP (date type) format the date as the timestamp format
MySQL
SELECT id, title,createdate,FROM_UNIXTIME(UNIX_TIMESTAMP(createdate),'%Y-%m-%d') AS createdate