12
Nov
Learn how to format mysql datetime with php
This is probably wrong as this does not work:
$mysqldate = date("m/d/y g:i A", $datetime);
And This will works:
$phpdate = strtotime( $mysqldate ); $mysqldate = date( 'Y-m-d H:i:s', $phpdate );
This is probably wrong as this does not work:
$mysqldate = date("m/d/y g:i A", $datetime);
And This will works:
$phpdate = strtotime( $mysqldate ); $mysqldate = date( 'Y-m-d H:i:s', $phpdate );