getCurrentDate() {
const date = new Date();
const year = date.getFullYear().toString();
const month = ('0' + (date.getMonth() + 1)).slice(-2);
const day = ('0' + date.getDate()).slice(-2);
return `${year}-${month}-${day}`;
},
getToday() {
let d = new Date();
let year = new Date().getFullYear();
let month = new Date().getMonth() + 1;
let date = new Date().getDate();
month = month < 10 ? `0${month}` : month;
date = date < 10 ? `0${date}` : date;
return `${year}-${month}-${date}`
},