有一个字符串:
$time = "2013-07-10T21:00:00.000";
如何将其转换为“2013-07-10 21:00:00”格式?
$time = strtotime("2013-07-10T21:00:00.000");
return strftime("%Y-%m-%d %H:%M:%S", $time);
$date = new \DateTime($time);
$date->format('Y-m-d H:i:s');
$time = "2013-07-10T21:00:00.000";
echo date("Y-i-d H:m:s",strtotime($time));