Skip to content

Instantly share code, notes, and snippets.

@Nicksxs
Created February 15, 2016 01:37
Show Gist options
  • Save Nicksxs/7ad3f52a106197c6db11 to your computer and use it in GitHub Desktop.
Save Nicksxs/7ad3f52a106197c6db11 to your computer and use it in GitHub Desktop.
//当月初始时间
$beginThisMonth = date("Y-m-d H:i:s", mktime(0, 0, 0, date('m'), 1, date('Y')));
//当月结束时间
$endThisMonth = date("Y-m-d H:i:s", mktime(23, 59, 59, date('m'), date('t'), date('Y')));
@Nicksxs
Copy link
Author

Nicksxs commented Feb 15, 2016

记一下,方便使用

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment