用php获取月末
$a_date = "2009-11-23"; echo date("Y-m-t", strtotime($a_date)); //第二种 (new DateTime('2009-11-23'))->modify('last day of')