当前位置:网站首页>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');
边栏推荐
- 1689. Ten - the minimum number of binary numbers
- Flask框架配置loguru日志庫
- 渗透测试 ( 4 ) --- Meterpreter 命令详解
- pytorch提取骨架(可微)
- 渗透测试 2 --- XSS、CSRF、文件上传、文件包含、反序列化漏洞
- QT实现圆角窗口
- 栈的经典应用—括号匹配问题
- If you want to apply for a programmer, your resume should be written like this [essence summary]
- C basic grammar
- 渗透测试 ( 3 ) --- Metasploit Framework ( MSF )
猜你喜欢
860. Lemonade change
Information security - Analysis of security orchestration automation and response (soar) technology
D - function (HDU - 6546) girls' competition
Some problems encountered in installing pytorch in windows11 CONDA
MySQL import database error [err] 1273 - unknown collation: 'utf8mb4_ 0900_ ai_ ci’
渗透测试 ( 4 ) --- Meterpreter 命令详解
pytorch提取骨架(可微)
b站 實時彈幕和曆史彈幕 Protobuf 格式解析
Codeforces Round #802(Div. 2)A~D
力扣——第298场周赛
随机推荐
Information security - threat detection engine - common rule engine base performance comparison
Nodejs crawler
[exercise-6] (UVA 725) division = = violence
[exercise-8] (UVA 246) 10-20-30== simulation
[exercise-5] (UVA 839) not so mobile (balance)
[exercise-7] (UVA 10976) fractions again?! (fraction split)
F - birthday cake (Shandong race)
Advancedinstaller安装包自定义操作打开文件
TCP's three handshakes and four waves
计算时间差
Alice and Bob (2021 Niuke summer multi school training camp 1)
Penetration test (8) -- official document of burp Suite Pro
Raspberry pie csi/usb camera uses mjpg to realize web camera monitoring
Frida hook so layer, protobuf data analysis
[exercise-9] Zombie's Treasury test
input 只能输入数字,限定输入
Data storage in memory & loading into memory to make the program run
Auto.js入门
C language learning notes
MySQL grants the user the operation permission of the specified content