轉自:http://www.cnblogs.com/whlives/p/5795458.html ...
echo date Ymd ,strtotime now , n echo date Ymd ,strtotime week Monday , n echo date Ymd ,strtotime week Sunday , n echo date Ymd ,strtotime week Monday , n echo date Ymd ,strtotime week Sunday , n da ...
2016-08-22 14:25 0 5525 推薦指數:
轉自:http://www.cnblogs.com/whlives/p/5795458.html ...
/** * 獲取本周、本季度、本月、上月的開始日期、結束日期 */ var now = new Date(); //當前日期 var nowDayOfWeek = now.getDay(); //今天本周的第幾天 var nowDay = now.getDate(); //當前日 var ...
原地址:https://www.cnblogs.com/yangzailu/p/6474600.html 謝謝~ ...
/** * 日期范圍工具類 */ var dateRangeUtil = (function () { /*** * 獲得當前時間 */ this.getCurrentDate = function () { return new Date ...
/*** 獲取本周、本季度、本月、上月的開始日期、結束日期*/var now = new Date(); //當前日期 var nowDayOfWeek = now.getDay(); //今天本周的第幾天 var nowDay = now.getDate(); //當前日 var ...