PHP MySQL time format code example
Example 1: php mysql date format
date("Y-m-d H:i:s")
Example 2: php mysql timestamp format
date("Y-m-d H:i:s", strtotime($_POST['timestamp']));
date("Y-m-d H:i:s")
date("Y-m-d H:i:s", strtotime($_POST['timestamp']));