date("Y-m-d H:i:s", strtotime($_POST['timestamp']));
-- Use the FROM_UNIXTIME() function in MySQL select from_unixtime(timestamp) from my_tbl;
INSERT INTO ... VALUES ('YYYY-MM-DD HH:MM:SS');