Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Shell/Bash
ecmascript 7 getmonth as 2 digits
Athari
Programming language:
Shell/Bash
2021-05-28 19:55:15
0
Q:
ecmascript 7 getmonth as 2 digits
Yassine Imounachen
Code:
Shell/Bash
2021-03-06 17:20:31
("0" + (this.getMonth() + 1)).slice(-2)
2
Mazen Draou
Code:
Shell/Bash
2021-03-05 11:56:20
("0" + this.getDate()).slice(-2)
1
Tags
digits
get
script
digit
Related
#fb0 in six digit olor code
New to Communities?
Join the community