参考: http://www.richardlord.net/blog/dates-in-php-and-mysql $mysqldate = date( 'Y-m-d H:i:s', $phpdate ); $phpdate = strtotime( $mysqldate );