Hello there! I am looking to increase my current date by 12 months and decrease it by 1 day.
For Example :
valStartDate :2018-01-20
expected_date:2019-01-19
Unfortunately, I encountered an error while trying the following code: "getFullYear() not a function to allow"
this.endDate =this.valStartDate.getFullYear()+1+'-'+this.valStartDate.getMonth()+'-'+(this.valStartDate.getDate()-1);