Antd date selection component

react antd DatePicker date selection box
how to set a date that can only be selected for a specified month, such as Smart Select May 2018 to select a date.


emmmm, doesn't understand what it means. Do you want to say a fixed month and then let the user choose a date?


"Intelligence", do you call this intelligence? If antd did that, it would be bug.

all you need is defaultValue = {moment (new Date ())}

specific api: https://ant.design/components.


disabledDate

clipboard.png

disabledDateFun = (current) => {
    return true;    // truefalse
};

<DatePicker
    disabledDate={this.disabledDateFun}
/>
Menu