Date functions not running in Firefox
<p>I have a date picker through which I get date through the javascript.</p>

<pre><code>var tmpEarTxt = document.getElementById('&lt;%=txtEarDate.ClientID %&gt;');
</code></pre>

<p>When I increment the date by 30 days, the mozilla browser gives NaN-Nan-0NaN as a result. However, its working fine in chrome. Here is my code :</p>

<pre><code>var dtVal = new Date(tmpEarTxt.value);
dtVal.setDate(dtVal.getDate() + 30);
</code></pre>

<p>How do I fix this issue?</p>
