Reputation: 7
ionViewDidEnter() {
let self = this;
self.originationsProvider.getOrigination()
.then((data) => {
self.origination = data;
console.log(self.origination, "slefOrigination");
this.complete = self.origination.filter((obj) => obj.state_status == 'completed');
this.inComplete = self.origination.filter((obj) => obj.state_status == 'not_completed');
// i am getting Change_Date from self.origination json
console.log(this.inComplete, this.complete, "Incomplete");
self.servicing = data;
self.cdr.detectChanges();
})
}
<p style="white-space: initial;font-size: 15px;color: #3f454e;">Proxy payment due by: “No Later than {{account.Change_Date}}”</p>
//I am getting date in Change_Date.I have to display the date by adding 9 days to it.
I want to add 9 days to today's date. I am using Angular 4 & Ionic 3.Thanks in advance
Upvotes: 0
Views: 1188
Reputation: 245
var today = new Date();
Add 9 days to date
var nextdate = new Date(today.getFullYear(),today.getMonth(),today.getDate()+9);
Upvotes: 2