I have to calculate three date form tommorow. for example todayes date is 1-12-2016
so next three date will be 2-12-2016 , 3-12-2016 , 4-12-2016
i am able to do it in this situation but my problem is if my date is 30
or 31
i am get the date as 32, 33, 34
but i have to get 1, 2, 3
here is my code
this.today = new Date();
this.tommorowDate =this.today.setDate(this.today.getDate() + 1)
console.log(this.tommorowDate)
this.dd = this.today.getDate();
this.mm = this.today.getMonth()+1;
this.yyyy = this.today.getFullYear();
this.currentDate = this.dd+'/'+this.mm+'/'+this.yyyy;
for(var i = 1; i <= 3; i++){
var incrementdate = this.dd+i;
this.datepickerArray.push(this.yyyy+'-'+this.mm+'-'+incrementdate)
}
my this.datepickerArray as [31-1-2017,32-1-2017,33-1-2017].
but i have to get like this [31-1-2017,1-2-2017,2-2-2017].
I am able to get tomorrows date but using that how can i get my array update with next months.