javascript date double digit month

JavaScript
("0" + (this.getMonth() + 1)).slice(-2)("0" + this.getDate()).slice(-2)var MyDate = new Date();
var MyDateString;

MyDate.setDate(MyDate.getDate() + 20);

MyDateString = ('0' + MyDate.getDate()).slice(-2) + '/'
             + ('0' + (MyDate.getMonth()+1)).slice(-2) + '/'
             + MyDate.getFullYear();

Source

Also in JavaScript: