2021年4月4日星期日

How to enable only 3 months in AntD Range Picker?

I am using AntD Range Picker. I want to allow the user to select only 90 days, starting from 90 days from today. I have mange to block all the future days (after today) with the following code. How can I allow only 3 months (3 months back from today)?

<RangePicker              format="YYYY-MM-DD"              onChange={onChange}              disabled={loading}              onOpenChange={onOpenChange}              disabledDate={(currentDate) => currentDate.isAfter(moment())}            />  
https://stackoverflow.com/questions/66943618/how-to-enable-only-3-months-in-antd-range-picker April 05, 2021 at 12:46AM

没有评论:

发表评论