timestamp mysql code example
Example 1: date vs datetime
DATE : YYYY-MM-DD format
DATETIME : YYYY-MM-DD HH:MM:SS format
TIMESTAMP : X s from 1970 format
TIME : HH:MM:SS format
Example 2: timestamp mysql
1970-01-01 00:00:01
Example 3: mysql timestamp format
INSERT INTO ... VALUES ('YYYY-MM-DD HH:MM:SS');