本月第一天 $nowMonthFirstDay = date('Y-m-01'); 本月最后一天 $nowMonthLastDay = date('Y-m-t'); 上月第一天 $lastMonthFirstDay = date('Y-m-01', strtotime('-1 month', time())); 上月最后一天 $lastMonthLastDay = date('Y-m-t', strtotime('-1 month', time()));
$nowMonthFirstDay = date('Y-m-01');
$nowMonthLastDay = date('Y-m-t');
$lastMonthFirstDay = date('Y-m-01', strtotime('-1 month', time()));
$lastMonthLastDay = date('Y-m-t', strtotime('-1 month', time()));
转载注明:
感谢博主,喝杯咖啡~
感谢博主,喝杯咖啡~
还没有人发表评论