showing results for - "javascript date double digit month"
Maximilian
13 Mar 2020
1var MyDate = new Date();
2var MyDateString;
3
4MyDate.setDate(MyDate.getDate() + 20);
5
6MyDateString = ('0' + MyDate.getDate()).slice(-2) + '/'
7             + ('0' + (MyDate.getMonth()+1)).slice(-2) + '/'
8             + MyDate.getFullYear();
9
similar questions
queries leading to this page
javascript date double digit month