In the new project, there is a DataPicker component using antd. The date format I need belongs to YYYY-MM-DD, but the date format obtained only by using the onChange event in the DatePicker tag is not the format I want. Carefully check the antd official website to download dayjs (npm i dayjs), and then introduce dayjs
Set the value when using the component, and then use the onChange method to get the value. Note: the project is written using tsx
Next write the data echo of DatePicker