title: Ant Design DatePicker component gives error when showing data in dynamic form with initial values
body: <p>I am using antd dynamic form for the update form. My dates in an array and I want to show them with &lt; DatePicker /&gt; and &lt;Form.List /&gt; .But I am getting</p>
  <blockquote>
  <p>moment.js:105 Uncaught TypeError: date.clone is not a function</p>
  </blockquote>
  <blockquote>
  <p>index.js:1 The above error occurred in the  component:</p>
  </blockquote>
  <pre><code>//object itself
  const module = {
  id:1,module_dates:[{date:&quot;04/07/2021&quot;},...]
  }
  </code></pre>
  <p>And I convert all dates to similar with this &quot;new Date(module.module_dates[0].date)&quot; to be sure format as &quot;Tue Jul 06 2021 03:00:00 GMT+0300 (GMT+03:00)&quot; but still getting the error. form component is below;</p>
  <pre><code>              &lt;Form
                  name='update_module'
                  onFinish={SubmitForm}
                  initialValues={{
                    module_dates: module.module_dates,
                  }}
                &gt;
                  
  
                  &lt;Form.List name='module_dates'&gt;
                    {(fields, { add, remove }) =&gt; (
                      &lt;&gt;
                        {fields.map(({ key, name, fieldKey, ...restField }) =&gt; (
                          &lt;Space
                            key={key}
                            align='baseline'
                          &gt;
  
                            &lt;Form.Item
                              {...restField}
                              name={[name, 'date']}
                              fieldKey={[fieldKey, 'date']}
                            &gt;
                              &lt;DatePicker /&gt;
                            &lt;/Form.Item&gt;
  
                            &lt;MinusCircleOutlined onClick={() =&gt; remove(name)} /&gt;
                          &lt;/Space&gt;
                        ))}
                        &lt;Form.Item&gt;
                          &lt;Button
                            type='dashed'
                            onClick={() =&gt; add()}
                            icon={&lt;PlusOutlined /&gt;}
                          &gt;
                            Add date
                          &lt;/Button&gt;
                        &lt;/Form.Item&gt;
                      &lt;/&gt;
                    )}
                  &lt;/Form.List&gt;
  
                  &lt;Form.Item&gt;
                    &lt;Button type='primary' htmlType='submit'&gt;
                      Submit
                    &lt;/Button&gt;
                  &lt;/Form.Item&gt;
                &lt;/Form&gt;
  </code></pre>
  <p>If necessary I can create a sandbox as well. Thanks already.</p>