mysql database format datetime in php code example Example: php mysql date format date("Y-m-d H:i:s")