当前位置:网站首页>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');
边栏推荐
猜你喜欢
Problem - 922D、Robot Vacuum Cleaner - Codeforces
Configuration du cadre flask loguru log Library
b站 实时弹幕和历史弹幕 Protobuf 格式解析
605. Planting flowers
frida hook so层、protobuf 数据解析
QT有关QCobobox控件的样式设置(圆角、下拉框,向上展开、可编辑、内部布局等)
[exercise-5] (UVA 839) not so mobile (balance)
Maximum product (greedy)
1013. Divide the array into three parts equal to and
860. Lemonade change
随机推荐
日期加1天
滲透測試 ( 1 ) --- 必備 工具、導航
Shell Scripting
Information security - threat detection engine - common rule engine base performance comparison
[exercise-3] (UVA 442) matrix chain multiplication
Sword finger offer II 019 Delete at most one character to get a palindrome
渗透测试 ( 5 ) --- 扫描之王 nmap、渗透测试工具实战技巧合集
860. Lemonade change
(POJ - 3685) matrix (two sets and two parts)
计算时间差
Codeforces - 1526C1&&C2 - Potions
1855. Maximum distance of subscript alignment
969. Pancake sorting
What is the difficulty of programming?
Penetration test (7) -- vulnerability scanning tool Nessus
The concept of C language array
The "sneaky" new asteroid will pass the earth safely this week: how to watch it
Codeforces Round #802(Div. 2)A~D
Bidirectional linked list - all operations
E. Breaking the Wall