MySQL date format with php

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


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

Leave a Comment