1var date = new Date();
2var firstDay = new Date(date.getFullYear(), date.getMonth(), 1);
3var lastDay = new Date(date.getFullYear(), date.getMonth() + 1, 0);
1var today = new Date();
2var lastDayOfMonth = new Date(today.getFullYear(), today.getMonth()+1, 0);
3