小编Sea*_*ray的帖子

为什么 strtotime() 和 date() 返回 1969-31-12?

我有这个代码:

$endDate='02-20-2014'; //Just updated this
echo date('Y-d-m',strtotime($endDate));
Run Code Online (Sandbox Code Playgroud)

为什么strtotime()一直给我1969-31-12

我的目标是获得:2014-02-20

php date strtotime

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

date ×1

php ×1

strtotime ×1