Antd design uses the DatePicker date selection box component in form to set default values


  {getFieldDecorator("begin_date", {
   initialValue: moment(begin_date, "YYYY-MM-DD")
  })(
    <DatePicker />
  )}
</FormItem>
: 
![clipboard.png](/img/bVbly8K)

how to bind the current date to FormItem as the initial default time? According to the document, I read it for a long time. Please take a look at

Mar.16,2022

http://momentjs.cn/
take a look at the moment document
moment ('20181224'). Format ('YYYY-MM-DD')


moment (begin_date | |' YYYY-MM-DD')

Menu