其他分享
首页 > 其他分享> > 已知第几周 获取此周的日期

已知第几周 获取此周的日期

作者:互联网

 $dateString="2021-6周"
 $dates = date_create();
 $years = substr($dateString, 0, 4);
 $weeks = substr($dateString, 5, 2);
 date_isodate_set($dates, $years, $weeks);
 $start = date_format($dates, "Y-m-d");

  

标签:dates,此周,substr,几周,dateString,years,已知,date,weeks
来源: https://www.cnblogs.com/chaihtml/p/15242320.html