timestampdiff mysql code example
Example 1: php mysql timestamp format
date("Y-m-d H:i:s", strtotime($_POST['timestamp']));
Example 2: mysql timestamp format
INSERT INTO ... VALUES ('YYYY-MM-DD HH:MM:SS');
date("Y-m-d H:i:s", strtotime($_POST['timestamp']));
INSERT INTO ... VALUES ('YYYY-MM-DD HH:MM:SS');