关于时间格式化总结

1:MySql的查询语句

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

2:PHP的时间格式

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

 



posted @ 2016-08-04 14:49  流火行者  阅读(193)  评论(0编辑  收藏  举报