当前位置:网站首页>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;},
边栏推荐
- [PP-YOLOv2] Test a custom dataset
- 51nod 1830
- -Wl,--start-group ... -Wl,--end-group for resolving circular dependencies of several libraries
- (2022牛客多校四)H-Wall Builder II(思维)
- Modal dialog is used to implement the sign-in
- 51nod 2882最短路 (树链剖分)
- 51nod 2877熟练使用tarjan的知识
- stm32 利用 串口接收空闲中断 + dma 实现不定长度dma 接收
- 时间对象的格式化
- 启牛商学院靠不靠谱呢?证券账户开了安全吗
猜你喜欢
A preliminary study on the use of ndk and JNI
09 Spark on RDD 阶段划分
牛客练习赛88 D 克鲁斯卡尔重构树
Use Mongoose populate to implement multi-table associative storage and query, with complete code included
域前置通信过程和溯源思路
(2022牛客多校三)J-Journey(dijkstra)
51nod2614 小B爱旅行 (参考范艺杰代码 基本抄袭 太难了)
(newcoder 15079)无关(容斥原理)
Hi3516 use wifi module
树莓派wiringPi库的使用补充
随机推荐
抽象内部类
stm32 uses spi1 to read data from dma in slave mode
WeChat applet error undefined Expecting 'STRING','NUMBER','NULL','TRUE','FALSE','{','[', got ]Solution
跨域请求浏览器无法显示set-cookie,坑了我一晚上
MySQL 高级知识【 MyISAM 读锁写锁限制】
获取一星期前的时间 n-1 为含当天 一周7天 7-1
mysql主从复制
(2022杭电多校五)1010-Bragging Dice (思维)
Use Mongoose populate to implement multi-table associative storage and query, with complete code included
2022杭电多校六 1009-Map (巴那赫不动点)
(2022杭电多校四)1001-Link with Bracket Sequence II(区间动态规划)
51nod 2877熟练使用tarjan的知识
ABP中的数据过滤器
51nod2861 2-sat
不躺平,然后做到极致,就是最大的“安全感”
(2022牛客多校四)D-Jobs (Easy Version)(三维前缀或)
Porting ucos2 code from stm32 to GD32
动手写prometheus的exporter-01-Gauge(仪表盘)
2022杭电多校六 1007-Shinobu loves trip(同余方程)
Manacher(求解最长回文子串)