Extend Javascript Date Object
<p>I'm curious what would be the best practice to extend the Date constructor.</p>

<p>The problem I'm facing is, that the <code>Internet Explorer (&lt; 7+8)</code> can't parse a date like</p>

<pre><code>new Date('2010-05-11');
</code></pre>

<p>I have to admit that this is not a standard method to parse, anyways <code>FireFox</code> and <code>Chrome</code> perform well on that kind of date string.</p>

<p>Now I'm wondering, should I just split/parse/rebuild the string before calling new Date() or is there a more elegant solution ?</p>

<p><strong>update</strong></p>

<p>I would highly prefer a native js method to accomplish that. If there isn't a way
to somehow add a custom parsing I'll just transform the datestring.</p>
