var myDate = new Date();
var year = myDate.getFullYear();
var month = myDate.getMonth() + 1;
if (month < 10){ month = "0" + month;}
本月第一天:year.toString() + month.toString() + "01"
var myDate1 = new Date(year, parseInt(month) + 1, 0);
var year1 = myDate1.getFullYear();
var month1 = myDate1.getMonth() + 1;
if (month1 < 10){ month1 = "0" + month1;}
当前时间下月的最后一天:year1.toString() + month1.toString() + myDate1.getDate()