display date from database in php code example
Example 1: php date from mysql and date
$phpdate = strtotime( $mysqldate );
$mysqldate = date( 'Y-m-d H:i:s', $phpdate );
Example 2: show date php
check here link: http://www.eltcalendar.com/stuff/datemysqlphp.html