2013-08-26 21 views

回答

3
date("Y-m-d H:i:s", strtotime("2013-08-26T12:00:00.000")); 
2
$time = strtotime("2013-08-26T12:00:00.000"); 
echo strftime("%Y-%m-%d %H:%M:%S", $time); 
+0

它說,布爾值false –

+0

小姐格式,編輯答案,現在檢查。 –

2

簡單的解決方案,使用PHP的date功能。

echo date('Y-m-d H:i:s',strtotime('2013-08-26T12:00:00.000')); 
0

其他選項:

$x = new DateTime('2013-08-26T12:00:00.000'); 
$x->format('Y-m-d H:i:s'); 
相關問題