php format date from mysql code example
Example 1: php mysql date format
date("Y-m-d H:i:s")
Example 2: php date from mysql and date
$phpdate = strtotime( $mysqldate );
$mysqldate = date( 'Y-m-d H:i:s', $phpdate );
date("Y-m-d H:i:s")
$phpdate = strtotime( $mysqldate );
$mysqldate = date( 'Y-m-d H:i:s', $phpdate );