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.
我似乎找不到这个答案。
以下格式的日期的 php 代码是什么: 2012-11-29
$date = new DateTime(); $date = $date->format('F j, Y');
这给了我 2012 年 11 月 29 日
$date = new DateTime(); $date = $date->format('Y-m-d');
http://php.net/manual/en/function.date.php