标签: php mysql
来自mysql我得到了2012-11 05-05 12:39:1但是如果我使用了date('n-Y', strtotime(2012-1105-05 12:39:1));则会显示1-1970
2012-11 05-05 12:39:1
date('n-Y', strtotime(2012-1105-05 12:39:1));
1-1970
任何想法有什么问题
答案 0 :(得分:1)
在这种情况下,这可能不是一种有效的格式:
2012-1105-05 ^ ?? - what notation is this
查看所有有效格式 here 。