title: How to pass only the date to the database (without passing the time) using react-datetime picker
body: <p>How to pass only the date to the database (without passing the time) using react-datetime picker.</p>
  <p>Currently in my code it will pass both date and time to the backend like this (2021-09-07T18:30:00.000Z).</p>
  <p>I want to pass only the date like (2021-09-07) without the time.
  using react-datetime picker</p>
  <p>please help me!</p>
  <pre><code>                         &lt;ReactDatetime
                              inputProps={{
                                placeholder: &quot;MM/DD/YY&quot;,
                              }}
                              dateFormat=&quot;DD/MM/YYYY&quot;
                              timeFormat={false}
                              onChange={(value) =&gt;
                                formik.handleChange({
                                  target: {
                                    name: &quot;date_of_the_event&quot;,
                                    value,
                                  },
                                })
                              }
                              onBlur={formik.handleBlur}
                              value={formik.values.date_of_the_event}
                            /&gt; 
  </code></pre>