//给周一的日期,得到这一周的日期
function arrStartEndDate($StartDate){
$Date1 = $StartDate;
$Date2 = date("Y-m-d",strtotime($Date1)+86400);
$Date3 = date("Y-m-d",strtotime($Date1)+86400*2);
$Date4 = date("Y-m-d",strtotime($Date1)+86400*3);
$Date5 = date("Y-m-d",strtotime($Date1)+86400*4);
$Date6 = date("Y-m-d",strtotime($Date1)+86400*5);
$Date7 = date("Y-m-d",strtotime($Date1)+86400*6);
$newArrayDate = array($Date1,$Date2,$Date3,$Date4,$Date5,$Date6,$Date7);
return $newArrayDate;
}
给周一的日期,得到这一周的日期 (区间段)
最新推荐文章于 2023-08-31 10:45:38 发布