Why JavaScript parses data wrongly? : <p>There are two strange things:</p>

<ul>
<li>day 30 instead of 31?</li>
<li><p>it set 13 as time instead of 00?</p>

<pre><code>new Date('Dec 31, 2019').toISOString()
// '2019-12-30T13:00:00.000Z'
</code></pre></li>
</ul>

<p>Basically what I'm trying to do is to convert original data format into <code>YYYY-MM-DD</code>.</p>
