react antD moment

import moment from 'moment'

console.log(moment().add(1, 'days').format('YYYY-MM-DD')) //当前时间前一天

console.log(moment().add(-1, 'week').format('YYYY-MM-DD'))//当前时间前一周

console.log(moment().add(1, 'week').format('YYYY-MM-DD'))//当前时间后一周