React Antd DatePicker with custom format for input and for display
问题 I am currently using DatePicker Component of antd for displaying date but not able to customize the input format and display format. Eg: user would type the date as mmddyy (112119) format, datePicker should display date as 2019-11-21. Please find the sandbox link which I have tried by setting the value to datePicker but its getting overridden by format attribute https://codesandbox.io/s/wonderful-star-75qjq 回答1: Inspect the onOpenChange event and change the format prop can do this. class