当前位置:网站首页>Date plus 1 day
Date plus 1 day
2022-07-06 16:14:00 【Dream height 1.8 meters】
Direct addition 24 * 60 * 3600 Can only be used in new Date() when
let next = new Date((new Date() + 24*60*3600));
Custom date plus one day
let custom = new Date('2022-6-1');
let next = new Date(custom .setDate(custom .getDate() + 1))
// Thu Jun 02 2022 00:00:00 GMT+0800 ( China standard time ) {}
// next.tolocalString()
// 2022/6/2 00:00:00
边栏推荐
- Understand what is a programming language in a popular way
- Penetration test (4) -- detailed explanation of meterpreter command
- 1855. Maximum distance of subscript alignment
- QT按钮点击切换QLineEdit焦点(含代码)
- Shell Scripting
- The "sneaky" new asteroid will pass the earth safely this week: how to watch it
- (POJ - 3258) River hopper (two points)
- QT实现窗口置顶、置顶状态切换、多窗口置顶优先关系
- 渗透测试 ( 4 ) --- Meterpreter 命令详解
- 滲透測試 ( 1 ) --- 必備 工具、導航
猜你喜欢
[exercise-5] (UVA 839) not so mobile (balance)
“鬼鬼祟祟的”新小行星将在本周安全掠过地球:如何观看
Maximum product (greedy)
1323. Maximum number of 6 and 9
Penetration test (1) -- necessary tools, navigation
Programmers, what are your skills in code writing?
Penetration test 2 --- XSS, CSRF, file upload, file inclusion, deserialization vulnerability
409. Longest palindrome
7-1 understand everything (20 points)
Share an example of running dash application in raspberry pie.
随机推荐
Maximum product (greedy)
渗透测试 2 --- XSS、CSRF、文件上传、文件包含、反序列化漏洞
QT实现圆角窗口
栈的经典应用—括号匹配问题
1323. Maximum number of 6 and 9
力扣:第81场双周赛
Auto.js入门
读取和保存zarr文件
Advancedinstaller安装包自定义操作打开文件
Frida hook so layer, protobuf data analysis
Read and save zarr files
Openwrt source code generation image
Is the sanic asynchronous framework really so strong? Find truth in practice
PySide6 信号、槽
[exercise-4] (UVA 11988) broken keyboard = = (linked list)
[exercise-7] crossover answers
antd upload beforeUpload中禁止触发onchange
[exercise -10] unread messages
pytorch提取骨架(可微)
浏览器打印边距,默认/无边距,占满1页A4