關於時間格式化總結

流火行者發表於2016-08-04

1:MySql的查詢語句

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

2:PHP的時間格式

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

 



相關文章