Javascript Date() constructor doesn't work
<p>I have an issue - </p>

<p>The javascript <code>Date("mm-dd-yyyy")</code> constructor doesn't work for FF.  It works fine for IE.</p>

<ul>
<li>IE : <code>new Date("04-02-2008")</code> => <code>"Wed Apr 2 00:00:00 EDT 2008"</code></li>
<li>FF2 : <code>new Date("04-02-2008")</code> => <code>Invalid Date</code>    </li>
</ul>

<p>So lets try another constructor. Trying this constructor <code>Date("yyyy", "mm", "dd")</code></p>

<ul>
<li>IE : <code>new Date("2008", "04", "02");</code> => <code>"Fri May 2 00:00:00 EDT 2008"</code></li>
<li>FF : <code>new Date("2008", "04", "02");</code> => <code>"Fri May 2 00:00:00 EDT 2008"</code></li>
<li>IE : <code>new Date("2008", "03", "02");</code> => <code>"Wed Apr 2 00:00:00 EDT 2008"</code></li>
<li>FF : <code>new Date("2008", "03", "02");</code> => <code>"Wed Apr 2 00:00:00 EDT 2008"</code></li>
</ul>

<p>So the <code>Date("yyyy", "mm", "dd")</code> constructor uses an index of <code>0</code> to represent January. </p>

<p>Has anyone dealt with this?<br>
There must be a better way than subtracting 1 from the months.</p>
