new Date() is working in Chrome but not Firefox
<p>I am creating a datetime string that looks like this :  2010-07-15 11:54:21</p>

<p>And with the following code I get invalid date in firefox but works just fine in chrome</p>

<pre><code>var todayDateTime = year + '-' + month + '-' + day + ' ' + hour + ':' + minute + ':' + seconds;
var date1 = new Date(todayDateTime);
</code></pre>

<p>In firefox date1 is giving me an invalid date, but in chrome its working just fine what would the main cause be?</p>

<p>Appreciate the help in advanced. Thanks</p>
