function getLastDay() {
var seperator1 = "-";
var date=new Date;
var new_month = date.getMonth()+1;
var new_year = date.getFullYear();
//取当前的年份
var new_date = new Date(new_year,new_month,1);
//取当年当月中的第一天
// (new Date(new_date.getTime()-1000*60*60*24)).getDate();//获取当月最后一天日期 var currentdate = new_year + seperator1 + new_month + seperator1 +(new Date(new_date.getTime()-1000*60*60*24)).getDate();
return currentdate;
}