当前位置: 首页 > news >正文

做的网站一直刷新项城网站

做的网站一直刷新,项城网站,天站网站建设,广州建设厅官方网站js 获取 本周、上周、本月、上月、本季度、上季度的开始结束日期/*** 获取本周、本季度、本月、上月的开始日期、结束日期*/var now new Date(); //当前日期var nowDayOfWeek now.getDay(); //今天本周的第几天var nowDay now.getDate(); //当前日var nowMonth now.getMont…js 获取 本周、上周、本月、上月、本季度、上季度的开始结束日期/*** 获取本周、本季度、本月、上月的开始日期、结束日期*/var now new Date(); //当前日期var nowDayOfWeek now.getDay(); //今天本周的第几天var nowDay now.getDate(); //当前日var nowMonth now.getMonth(); //当前月var nowYear now.getYear(); //当前年nowYear (nowYear 2000) ? 1900 : 0; //var lastMonthDate new Date(); //上月日期lastMonthDate.setDate(1);lastMonthDate.setMonth(lastMonthDate.getMonth() - 1);var lastYear lastMonthDate.getYear();var lastMonth lastMonthDate.getMonth();//格式化日期yyyy-MM-ddfunction formatDate(date) {var myyear date.getFullYear();var mymonth date.getMonth() 1;var myweekday date.getDate();if (mymonth 10) {mymonth 0 mymonth;}if (myweekday 10) {myweekday 0 myweekday;}return (myyear - mymonth - myweekday);}//获得某月的天数function getMonthDays(myMonth) {var monthStartDate new Date(nowYear, myMonth, 1);var monthEndDate new Date(nowYear, myMonth 1, 1);var days (monthEndDate - monthStartDate) / (1000 * 60 * 60 * 24);return days;}//获得本季度的开始月份function getQuarterStartMonth() {var quarterStartMonth 0;if (nowMonth 3) {quarterStartMonth 0;}if (2 nowMonth nowMonth 6) {quarterStartMonth 3;}if (5 nowMonth nowMonth 9) {quarterStartMonth 6;}if (nowMonth 8) {quarterStartMonth 9;}return quarterStartMonth;}//获得本周的开始日期function getWeekStartDate() {var weekStartDate new Date(nowYear, nowMonth, nowDay - nowDayOfWeek);return formatDate(weekStartDate);}//获得本周的结束日期function getWeekEndDate() {var weekEndDate new Date(nowYear, nowMonth, nowDay (6 - nowDayOfWeek));return formatDate(weekEndDate);}//获得上周的开始日期function getLastWeekStartDate() {var weekStartDate new Date(nowYear, nowMonth, nowDay - nowDayOfWeek - 7);return formatDate(weekStartDate);}//获得上周的结束日期function getLastWeekEndDate() {var weekEndDate new Date(nowYear, nowMonth, nowDay - nowDayOfWeek - 1);return formatDate(weekEndDate);}//获得本月的开始日期function getMonthStartDate() {var monthStartDate new Date(nowYear, nowMonth, 1);return formatDate(monthStartDate);}//获得本月的结束日期function getMonthEndDate() {var monthEndDate new Date(nowYear, nowMonth, getMonthDays(nowMonth));return formatDate(monthEndDate);}//获得上月开始时间function getLastMonthStartDate() {var lastMonthStartDate new Date(nowYear, lastMonth, 1);return formatDate(lastMonthStartDate);}//获得上月结束时间function getLastMonthEndDate() {var lastMonthEndDate new Date(nowYear, lastMonth, getMonthDays(lastMonth));return formatDate(lastMonthEndDate);}//获得本季度的开始日期function getQuarterStartDate() {var quarterStartDate new Date(nowYear, getQuarterStartMonth(), 1);return formatDate(quarterStartDate);}//或的本季度的结束日期function getQuarterEndDate() {var quarterEndMonth getQuarterStartMonth() 2;var quarterStartDate new Date(nowYear, quarterEndMonth,getMonthDays(quarterEndMonth));return formatDate(quarterStartDate);}
http://www.pierceye.com/news/59058/

相关文章:

  • 寒亭做网站网站策划专员所需知识
  • 网站建设数据库的选择如何做好品牌网站建设方案
  • 国外网站建设企业专业的网站建设公司
  • 做物流网站电话号码开发者工具下载网页视频
  • 佛山网站建设哪家公司好网站优化 pdf
  • 除了百度指数还有哪些指数上海搜索引擎关键词优化
  • 济南网站制作费用免费私人网站建设软件
  • 贸易建设网站金龙网站哪里建设的
  • 网站文章模块html5用什么软件
  • 自己的网站怎么做进销存上饶网站开发
  • 网站下拉箭头怎么做的做企业网站 需要注意的
  • 注册网站域名多少钱一年童装网站建设文案
  • ui做网站流程光谷网站建设哪家好
  • 文章页模板wordpressseo是指什么意思
  • 小型网站建设实训教程北京建设工程信息网站
  • 深圳做的好的电子行业招聘网站外包服务网站排名
  • 静态网站更新chinacd.wordpress变身
  • 建立网站专业公司吗营销网站模板
  • 石家庄市规划建设局网站网络优化网站 site
  • 建公司网站哪家好网站建设经典教材
  • 章丘做网站单位哪家好三丰云免费服务器
  • 潍坊地区制作网站wordpress编辑header
  • 山西网站建设开发团队为wordpress配置邮箱服务
  • 常见网站模式敏捷模型是软件开发模型吗
  • 做照明出口的网站淘宝关键词搜索量排名
  • 做公司网站详细步骤乐山的网站建设公司
  • 做购物网站智慧团建官网登陆入口
  • 企业宣传网站制作北京中邦亚通网站
  • 网站解析ip地址传奇设计师身亡
  • 网站开发语言在那看出来叮当设计app官方下载