How do you disable the current/today's date with DatePicker in the Ant Design library? I need to move the default date back one day (I successfully did this) and disable the current day and all days in the future. I have it really close, except I can't seem to disable the current/today? Can you not do that?
This is what I'm trying?
private disabledDate = (current) => {
return current && current >= moment().endOf('day');
}
....
<DatePicker
defaultValue={moment().subtract(1, 'day')}
value={moment(this.state.reportPeriod, dateFormat)}
format={'MMM D, YYYY'}
disabledDate={this.disabledDate}
onChange={this.selectDate}
/>