I have a datetime column in MySQL.
datetime
How can I convert it to the display as mm/dd/yy H:M (AM/PM) using PHP?
If you are using PHP 5, you can also try
$oDate = new DateTime($row->createdate); $sDate = $oDate->format("Y-m-d H:i:s");