Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已将我的项目 symfony2.0 版本升级到 symfony2.3。现在 date_format() 不起作用,但它在 symfony2.0 中运行良好。请帮我解决这个问题。
你应该试试:
$date = new DateTime('2013-08-10'); var_dump($date->format('Ymd'));
这个对我有用。