当前位置:Gxlcms > PHP教程 > php获取月头月末

php获取月头月末

时间:2021-07-01 10:21:17 帮助过:23人阅读

$start_time = $year . '-' . $month .'-01 00:00:00';
$end_time = date('Y-m-d', strtotime($start_time. ' +1 month -1 day')).' 23:59:59';

人气教程排行