当前位置:网站首页>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
边栏推荐
- 1605. Sum the feasible matrix for a given row and column
- C basic grammar
- [exercise-8] (UVA 246) 10-20-30== simulation
- 1855. Maximum distance of subscript alignment
- QT实现圆角窗口
- X-forwarded-for details, how to get the client IP
- 渗透测试 ( 1 ) --- 必备 工具、导航
- Socket communication
- QWidget代码设置样式表探讨
- Opencv learning log 27 -- chip positioning
猜你喜欢
渗透测试 ( 3 ) --- Metasploit Framework ( MSF )
Flag framework configures loguru logstore
Luogu P1102 A-B number pair (dichotomy, map, double pointer)
Flask框架配置loguru日志庫
Information security - Analysis of security orchestration automation and response (soar) technology
1323. Maximum number of 6 and 9
1903. Maximum odd number in string
Information security - Epic vulnerability log4j vulnerability mechanism and preventive measures
第 300 场周赛 - 力扣(LeetCode)
Pyside6 signal, slot
随机推荐
[exercise-1] (UVA 673) parentheses balance/ balanced brackets (stack)
[exercise-5] (UVA 839) not so mobile (balance)
Penetration test (4) -- detailed explanation of meterpreter command
Codeforces - 1526C1&&C2 - Potions
Interesting drink
Alice and Bob (2021 Niuke summer multi school training camp 1)
Maximum product (greedy)
Shell Scripting
Opencv learning log 26 -- detect circular holes and mark them
Socket communication
第 300 场周赛 - 力扣(LeetCode)
1529. Minimum number of suffix flips
Hdu-6025-prime sequence (girls' competition)
力扣:第81场双周赛
Luogu P1102 A-B number pair (dichotomy, map, double pointer)
Is the sanic asynchronous framework really so strong? Find truth in practice
window11 conda安装pytorch过程中遇到的一些问题
(POJ - 2739) sum of constructive prime numbers (ruler or two points)
Effet d'utilisation, déclenché lorsque les composants de la fonction sont montés et déchargés
Radar equipment (greedy)