php本月第一天/本月最后一天

本月第一天

$month_first_day=date('Y-m-01',strtotime(date("Y-m-d")));

本月第二天

$month_last_day=date('Y-m-d',strtotime("$month_first_day +1 month -1 day"));

2020-05-12的第二天

$tomorrow=date('Y-m-d',strtotime('2020-05-12')+86400);

posted on 2022-09-09 10:51  小馬過河﹎  阅读(16)  评论(0)    收藏  举报

导航