ecmascript 7 getmonth as 2 digits

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

Also in C++: