PHP:strtotime没有显示正确的值

时间:2012-11-06 06:31:33

标签: php mysql

来自mysql我得到了2012-11 05-05 12:39:1但是如果我使用了date('n-Y', strtotime(2012-1105-05 12:39:1));则会显示1-1970

任何想法有什么问题

1 个答案:

答案 0 :(得分:1)

在这种情况下,这可能不是一种有效的格式:

2012-1105-05
      ^ ?? - what notation is this

查看所有有效格式 here