feachData(num){
var myDate = new Date();
myDate.setMonth( myDate.getMonth()-num );
const Y = myDate.getFullYear();
const M = myDate.getMonth()+1;
const D = myDate.getDate();
const curDay = Y + ''+ this.fileD(M) + '' + this.fileD(D);
return curDay;
},
fileD(value)
{
let aa=value+'';
console.log(aa.length)
if(aa.length>1){
return aa
}
else{
return "0".concat(aa)
}
}