0
Q:

get month angular with 0

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

New to Communities?

Join the community