format timestamp in mysql query code example Example: mysql timestamp format INSERT INTO ... VALUES ('YYYY-MM-DD HH:MM:SS');