当前位置:网站首页>Get the current week time excluding the current day
Get the current week time excluding the current day
2022-08-08 23:37:00 【Chung seed】
val if the parameter exists, it represents the start time
getWeekTime: function (val, format) {var now = new Date();var dd = 0;var time = '';if (val) {dd = -7;} else {dd = -1;}now.setDate(now.getDate() + dd);var year = now.getFullYear();var month = now.getMonth() + 1;var day = now.getDate();if (month < 10)month = "0" + month;if (day < 10)day = "0" + day;if (val) {time = year + "-" + month + "-" + day + ' 00:00:00';} else {time = year + "-" + month + "-" + day + ' 23:59:59';}return time;},边栏推荐
猜你喜欢
![[GYCTF2020]Ezsqli-1|SQL注入](/img/02/dd53f409d278c85b0d48108c4c0148.png)
[GYCTF2020]Ezsqli-1|SQL注入

ViewOverlay与ViewGroupOverlay

(2022杭电多校三)1011.Taxi(曼哈顿最值+二分)

Manacher(求解最长回文子串)

03 Spark on 读取内部数据分区策略(源码角度分析)

并发编程第4篇,锁的分类

Qt入门(五)——文件操作、热键和鼠标的读取(txt窗口的实现)

(2022牛客多校五)G-KFC Crazy Thursday(二分+哈希/Manacher)

【LaTex异常与错误】 - 公式编号的参考引用命令\eqref发生错误Undefined control sequence——可能是因为没加载宏包amsmath

51nod 2877熟练使用tarjan的知识
随机推荐
Get the start time of the week
Qt入门(五)——文件操作、热键和鼠标的读取(txt窗口的实现)
线性筛求积性函数
Porting ucos2 code from stm32 to GD32
STM8L LCD digital tube driver, thermometer LCD display
并发编程第5篇,Synchronized的原理
2021 RoboCom 世界机器人开发者大赛-本科组(决赛)7-4猛犸不上 Ban(最短路)
51nod 2877熟练使用tarjan的知识
12 Spark on RDD 分区器
(newcoder 15079)无关(容斥原理)
[PP-YOLOv2] Training a custom dataset
(2022杭电多校三)1002-Boss Rush(状压DP+二分)
一命令删除所有指定进程
2022杭电多校六 1007-Shinobu loves trip(同余方程)
容斥原理
风控建模四:逻辑回归评分卡开发
10 Spark on RDD Cache
【深度学习】TensorFlow学习之路三:梯度消失\爆炸及解决办法
根據百度地图返回的地址,截取省,市,区
百度地图智能搜索及拖拽画圆