Php 时间迷糊了吗。。?
为什么Php 时间迷糊了吗。。?,php,date,Php,Date,为什么 $a = "Thursday, 10 January, 2013"; 当我这样做时,给我2012-01-12 $b = date('Y-m-d', strtotime($a)); 要求字符串为英文格式的日期。由于上述情况显然并非如此,它不会返回预期结果。例如,以下内容将正确渲染: $a = "January 10, 2013"; $b = date('Y-m-d', strtotime($a)); echo $b; 非常感谢你。我会记住的。
$a = "Thursday, 10 January, 2013";
当我这样做时,给我2012-01-12
$b = date('Y-m-d', strtotime($a));
要求字符串为英文格式的日期。由于上述情况显然并非如此,它不会返回预期结果。例如,以下内容将正确渲染:
$a = "January 10, 2013";
$b = date('Y-m-d', strtotime($a));
echo $b;
非常感谢你。我会记住的。