clisk(index,row) {
function getMyDate(str) {
str = parseInt(str);
if(str != "" || str != null) {
var oDate = new Date(str);
var oYear = oDate.getFullYear();
var oMonth = oDate.getMonth() + 1;
oMonth = oMonth >= 10 ? oMonth : '0' + oMonth;
var theDate = oYear + "-" + oMonth
} else {
theDate = "";
}
return theDate
};
for(let index = 0; index < 18; index++) {
console.log(row.value2)
// var date= new Date(Date.parse(row.value2.replace(/-/g, "/")));
console.log(date)
var date = new Date(row.value2);
var dateDemo = date.setMonth(date.getMonth() + index);
this.value1.push((getMyDate(dateDemo)))
}
console.log(this.value1)
},