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'))//当前时间后一周

猜你喜欢

转载自www.cnblogs.com/whlBooK/p/11040946.html
今日推荐