当前位置:网站首页>Specify the format time, and fill in zero before the month and days
Specify the format time, and fill in zero before the month and days
2022-07-06 16:14:00 【Dream height 1.8 meters】
antd DatePicker The selected time , It can be used format format :
https://blog.csdn.net/weixin_43915401/article/details/112880693
js Get time method :
https://blog.csdn.net/weixin_43915401/article/details/114014926
js The time when the specified format is generated , You can only spell it yourself , Just ... Add up , Fill the string .padStart(2,'0')2 A string , Less than two , Fill zero in front .
let date = new Date();
YYYY-MM-DD = date.getFullYear() + '-'
+ (date.getMonth() + 1).toString().padStart(2, '0') + '-'
+ (date.getDate()).toString().padStart(2, '0');
边栏推荐
- Educational Codeforces Round 130 (Rated for Div. 2)A~C
- Codeforces Round #799 (Div. 4)A~H
- 计算时间差
- F - birthday cake (Shandong race)
- [exercise-8] (UVA 246) 10-20-30== simulation
- [exercise-7] crossover answers
- (POJ - 3685) matrix (two sets and two parts)
- 图图的学习笔记-进程
- Codeforces - 1526C1&&C2 - Potions
- [exercise-6] (PTA) divide and conquer
猜你喜欢

Sword finger offer II 019 Delete at most one character to get a palindrome

Penetration test 2 --- XSS, CSRF, file upload, file inclusion, deserialization vulnerability

Essai de pénétration (1) - - outils nécessaires, navigation

antd upload beforeUpload中禁止触发onchange

Openwrt source code generation image

1323. Maximum number of 6 and 9

Differential (one-dimensional, two-dimensional, three-dimensional) Blue Bridge Cup three body attack

1903. Maximum odd number in string

969. Pancake sorting

The concept of C language array
随机推荐
Borg maze (bfs+ minimum spanning tree) (problem solving report)
2078. Two houses with different colors and the farthest distance
Interesting drink
Luogu P1102 A-B number pair (dichotomy, map, double pointer)
1689. Ten - the minimum number of binary numbers
Opencv learning log 29 -- gamma correction
[exercise-8] (UVA 246) 10-20-30== simulation
1903. Maximum odd number in string
栈的经典应用—括号匹配问题
Write web games in C language
C basic grammar
[exercise-6] (PTA) divide and conquer
Penetration testing (5) -- a collection of practical skills of scanning King nmap and penetration testing tools
E. Breaking the Wall
Information security - Epic vulnerability log4j vulnerability mechanism and preventive measures
B - Code Party (girls' competition)
MySQL import database error [err] 1273 - unknown collation: 'utf8mb4_ 0900_ ai_ ci’
C language must memorize code Encyclopedia
969. Pancake sorting
Information security - security professional name | CVE | rce | POC | Vul | 0day