MySQL date format with php

MySQL date in "yyyy-mm-dd hh:mm:ss" format using PHP:

<?php
$mysql_date = date('Y-m-d H:i:s');
?>

Leave a Reply

Your email address will not be published. Required fields are marked *