当前位置:网站首页>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');
边栏推荐
- 图图的学习笔记-进程
- CEP used by Flink
- Educational Codeforces Round 130 (Rated for Div. 2)A~C
- TCP's three handshakes and four waves
- If you want to apply for a programmer, your resume should be written like this [essence summary]
- Essai de pénétration (1) - - outils nécessaires, navigation
- X-forwarded-for details, how to get the client IP
- Interesting drink
- Find 3-friendly Integers
- Codeforces Round #802(Div. 2)A~D
猜你喜欢

Pytorch extract skeleton (differentiable)

Openwrt source code generation image
frida hook so层、protobuf 数据解析

C language is the watershed between low-level and high-level

浏览器打印边距,默认/无边距,占满1页A4

Information security - Epic vulnerability log4j vulnerability mechanism and preventive measures

2078. Two houses with different colors and the farthest distance

Programmers, what are your skills in code writing?

1855. Maximum distance of subscript alignment

Basic Q & A of introductory C language
随机推荐
C language is the watershed between low-level and high-level
The concept of C language array
[exercise-6] (PTA) divide and conquer
C basic grammar
The most complete programming language online API document
2078. Two houses with different colors and the farthest distance
Flag framework configures loguru logstore
Codeforces Round #801 (Div. 2)A~C
渗透测试 ( 3 ) --- Metasploit Framework ( MSF )
1529. Minimum number of suffix flips
Openwrt build Hello ipk
Codeforces Round #803 (Div. 2)A~C
CEP used by Flink
Sanic异步框架真的这么强吗?实践中找真理
Penetration test (8) -- official document of burp Suite Pro
605. Planting flowers
第 300 场周赛 - 力扣(LeetCode)
b站 实时弹幕和历史弹幕 Protobuf 格式解析
渗透测试 ( 1 ) --- 必备 工具、导航
628. Maximum product of three numbers