title: String to date converter issue in js
body: <p>My local machine in EST timezone.</p>
  
  <p>I'm trying to convert date string to date object in js but getting an day before from date string in date object.</p>
  
  <p><code>new Date('2020-04-03')</code> for this i'm getting <code>Thu Apr 02 2020 20:00:00 GMT-0400 (Eastern Daylight Time)</code> this output.</p>
  
  <p><code>new Date('2020/04/03')</code> for this i'm getting <code>Fri Apr 03 2020 00:00:00 GMT-0400 (Eastern Daylight Time)</code> this output.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>console.log(new Date('2020-04-03'))
  console.log(new Date('2020/04/03'))</code></pre>
  </div>
  </div>
  </p>
  
  <p>I don't know what is the difference between these can anyone explain that?</p>
  
  <p>How i fix this issue?</p>