2013-01-03 153 views

回答

5

您需要將日期字符串轉換爲時間戳:

echo date('Y-m-d', strtotime($date1));