Skip to content

Instantly share code, notes, and snippets.

@lighty
Created October 9, 2012 03:12
Show Gist options
  • Save lighty/3856356 to your computer and use it in GitHub Desktop.
Save lighty/3856356 to your computer and use it in GitHub Desktop.
当月の開始日、次月の開始日、次月の月末
$startOfThisMonth = date('Y-m-1', strtotime($from));
$startOfNextMonth = date('Y-m-d', strtotime($startOfThisMonth.' +1 month')) ;
$endOfNextMonth = date('Y-m-t', strtotime($startOfNextMonth));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment