关于时间格式化总结 1:MySql的查询语句 date_format(create_time, '%Y-%m-%d') 2:PHP的时间格式 $d=date('Y-m-d', strtotime("2016-08-22 10:10:28"));