title: Weird behavior of `new Date` in JavaScript
body: <p>I am not sure why it's working like this:</p>
  <pre class="lang-js prettyprint-override"><code>new Date('2020-10-06')
  // Mon Oct 05 2020 20:00:00 GMT-0400 (Eastern Daylight Time) {}
  
  new Date('2020-10-06 ')
  // Tue Oct 06 2020 00:00:00 GMT-0400 (Eastern Daylight Time) {}
  </code></pre>
  <p>I want to get <code>new Date('2020-10-06')</code> as a <code>Date</code> object of the day(not previous day).</p>
  <p>Could anyone give me an idea?</p>