赞
踩
拿到本月初日期:
- var today = new Date();
- var days = date1.getDate()-1;
- var beginOfMonth = addDay(date1, -days);
- var endDate = formatDate(beginOfMonth,"yyyyMMdd");
- var endDate = formatDate(today,"yyyyMMdd");
- var lastMonthDate = new Date(); //上月日期
- var days = lastMonthDate.getDate();
- lastMonthDate.setDate(days);
- lastMonthDate.setMonth(lastMonthDate.getMonth()-1);
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。