let yesterday = moment().subtract(1, 'days').format('YYYY-MM-DD') let today = moment(new Date()).format('YYYY-MM-DD') let tomorrow = moment().add(1, 'days').format('YYYY-MM-DD'); //resulet: //2022-09-15 //2022-09-16 //2022-09-17