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