The date range is within 365 days, and the date after the date cannot be selected

At this point the value – the format = “yyyy – MM – dd”

OnPick (time) {// Select only one time if (! time.maxDate) { let timeRange = 365 * 24 * 60 * 60 * 1000; // 365day_mintime = time.mindate.getTime () -timerange; _maxTime = time.mindate.getTime () + timeRange; Else {_minTime = _maxTime = null;} else {_minTime = _maxTime = null; }}, disabledDate(time) {// onPick triggers // This method polls for every date within 365 days. //time.getTime() <= new Date().getTime() -8.64e7 if (date.now () < time) {return true; } if (_minTime && _maxTime) { return time.getTime() < _minTime || time.getTime() > _maxTime; }}},Copy the code

With reference to Jane books