我的代码:PHP字符串日期返回错误的日期
echo "Strtotime : ";
echo date("Y-m-d",strtotime('9 March, 2015'));
echo "<br> mktime : ";
echo date("Y-m-d",mktime('9 March, 2015'));
echo "<br> Normal : ";
echo date("Y-m-d",'9 March, 2015');
我需要输出2015年3月9日
哪里字符串'3月9日,2015'来自 - 你有没有在这个任何控制,还有什么其他格式可能你被接收? – Steve
请尝试查看['mktime()'](http://php.net/manual/en/function.mktime.php)的手册。它与您尝试使用它无关。 – RiggsFolly
另请参见[ 'strtotime()'](http://php.net/manual/en/function.strtotime.php)如果你使用的功能正确,它们将正常工作 – RiggsFolly