Athari
0
Q:

ecmascript 7 getmonth as 2 digits

("0" + (this.getMonth() + 1)).slice(-2)
2
("0" + this.getDate()).slice(-2)
1

New to Communities?

Join the community