2017-01-19 翌月の末日取得 PHP <?php // 翌月の末日取得 $last_day_of_next_month = date('Ymd', strtotime(sprintf('last day of %s +1 month', date('Y-m')))); var_dump($last_day_of_next_month);