/** * 获取本周、本季度、本月、上月的开始日期、结束日期 */ var now = new Date(); //当前日期 var nowDayOfWeek = now.getDay(); //今天本周的第几天 var nowDay = now.getDate(); //当前日 var ...
日期范围工具类 var dateRangeUtil function 获得当前时间 this.getCurrentDate function return new Date 获得本周起止时间 this.getCurrentWeek function 起止日期数组 var startStop new Array 获取当前时间 var currentDate this.getCurrentDate ...
2018-10-15 15:41 0 1433 推荐指数:
/** * 获取本周、本季度、本月、上月的开始日期、结束日期 */ var now = new Date(); //当前日期 var nowDayOfWeek = now.getDay(); //今天本周的第几天 var nowDay = now.getDate(); //当前日 var ...
原地址:https://www.cnblogs.com/yangzailu/p/6474600.html 谢谢~ ...
//今天开始$beginToday = date('Y-m-d 00:00:00', time());//今天结束$endToday = date('Y-m-d 23:59:59', time()); ...
------------------------------------------------------------------------------------------------------------------------------- dateRangUtil.js ...