function getCurMonthFirstDay($date) {
return strtotime(date('Y-m-01 00:00:00', strtotime($date)));
}
function getCurMonthLastDay($date) {
return strtotime(date('Y-m-d 23:59:59', strtotime(date('Y-m-01 00:00:00', strtotime($date)) . ' +1 month -1 day')));
}
int(1464710400) int(1467302399)