热搜:NVER node 开发 php

php获取月头月末

2024-07-23 21:05:01
php获取月头月末

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