title: How can i convert DatePicker object to datestring
body: <p>I am using antd. I have a form that i want to send instead of DatePicker Object i want only the string but i don't know how to get the string from the Object.</p>
  <p>I don't have any state or value to change.</p>
  <p>Object:</p>
  <pre><code>_d: Date Mon Oct 26 2020 13:03:25 GMT+0200 (Eastern European Standard Time)
  ​​_isAMomentObject: true
  </code></pre>
  <p>I find this but i am not sure if is the best way to do.</p>
  <pre><code>    console.log(date._d.toISOString())
  </code></pre>
  <p>Results: (and just take only the date)</p>
  <pre><code>2020-01-01T11:26:21.765Z
  </code></pre>
  <p>Do you know if is a better solution for this just to take 2020-01-01.</p>