1:MySql的查询语句

date_format(create_time, '%Y-%m-%d')

2:PHP的时间格式

$d=date('Y-m-d', strtotime("2016-08-22 10:10:28"));

 



相关文章: