当前位置:网站首页>Get the start time of the week
Get the start time of the week
2022-08-08 23:35:00 【Chung seed】
getCurrentWeekStartTime: function (format) {var nowTemp = new Date(), //current timecTime = nowTemp.getTime(), //The millisecond time of the current timecDay = nowTemp.getDay() || 7, //The day of the week at the current timemTime = cTime - (cDay - 1) * 24 * 60 * 60 * 1000, //The millisecond time of the current Mondaymonday = new Date(mTime), //Set the Monday time objectmYear = monday.getFullYear(),mMonth = monday.getMonth() + 1,mDate = monday.getDate();if (mMonth < 10) {mMonth = "0" + mMonth;}if (mDate < 10) {mDate = "0" + mDate;}return mYear + '-' + mMonth + '-' + mDate;},
边栏推荐
猜你喜欢
随机推荐
06 Spark on RDD序列化问题
51nod1656 合并trie树
跨域请求浏览器无法显示set-cookie,坑了我一晚上
【深度学习】TensorFlow学习之路五:DNN防止过拟合的几种方法及TensorFlow实现
51nod 2877熟练使用tarjan的知识
[Pytorch] Study Notes (1)
Casbin 进行权限控制验证
[Tensorflow2] Some interface changes of tensorflow1.x-tensorflow2.x
(2022牛客多校三)J-Journey(dijkstra)
考证必看 | PMP扫盲贴+PMP材料
12 Spark on RDD 分区器
最详树莓派4B装机流程及ifconfig不到wlan0的解决办法
微信小程序错误 undefined Expecting ‘STRING‘,‘NUMBER‘,‘NULL‘,‘TRUE‘,‘FALSE‘,‘{‘,‘[‘, got ]解决方案
mysql主从复制
-Wl,--start-group ... -Wl,--end-group for resolving circular dependencies of several libraries
积性函数
13 Spark on RDD 全局累加器
域前置通信过程和溯源思路
(2022杭电多校六)1012-Loop(单调栈+思维)
51nod 2887 抓小偷 平面图最小割转换成最短路