function getNowDate() {
let myDate = new Date();//获取系统当前时间
let month = myDate.getMonth()< 10 ? "0"+(myDate.getMonth() + 1) : myDate.getMonth() + 1;
let date = myDate.getDate() < 10 ? "0" + (myDate.getDate()) : myDate.getDate() ;
let datetime = myDate.getFullYear() + "-" + month + "-" + date;
return datetime;
};
module.exports = {
getDate: getNowDate
}