Home > Q&A > body text
php 如何通过周和日获得一个日期例如:传入2017,3,4表示2017年第三周第4天得到2017-1-19的时间对象
PHP中文网用户-25171072023-11-15 00:15:06
Given a year, month and day, output the day of the year that the date is
How to do this question?
伊谢尔伦2017-04-11 09:22:21
下面是个例子
$date = new DateTime(); $date->setISODate(2017, 3, 4);// 第三周的第四天 echo $date->format('Y-m-d') . "\n";
Given a year, month and day, output the day of the year that the date is How to solve this problem
Home
Course
Q&A
My