Dates in PHP and Mysql $mysqldate = date( ‘Y-m-d H:i:s’, $phpdate ); $phpdate = strtotime( $mysqldate );