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')

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-7b52ed-27f70.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-7b52ed-27f70.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?