function disabledDate(current) {
// return current && current >= moment().endOf('day'); // 选择时间要大于等于当前天。若今天不能被选择,去掉等号即可。
// 限制为前后一周
return current < moment().subtract(7, 'days') || current >= moment().endOf('day');
// 限制为前后一周
// return current < moment().subtract(1, "weeks") || current > moment().add(1, 'weeks')
// 限制为前后一月
// return current < moment().subtract(1, "months") || current > moment().add(1, 'months')
// 限制为前后一年
// return current < moment().subtract(1, "years") || current > moment().add(1, 'years')
}