I am using Ant Design Calendar in my React project and I want to disable all the dates before today so that the user cannot select it.
The Calendar component looks like -
<Calendar
fullscreen={false}
onPanelChange={this._onPanelChange}
onSelect={this._onDateSelect}
disabledDate={() => }
/>
The Calendar API says we need to add disabledDate
(which returns a boolean) in order to specify that using momentjs
.
What should the query look like in moment.js?
Thanks in advance.