comparing dates in Javascript - Results not consistent
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3789913/how-to-check-2-date-fields-and-compare-to-see-which-date-is-ahead-behind-or-the">How to check 2 date fields and compare to see which date is ahead, behind or the same</a>  </p>
</blockquote>



<p>I am trying to implement a validation which should compare two dates and give an alert message.</p>

<p><code>entrydate</code> is a text feild in our ASP page and so is <code>vdata</code>. I should check and make sure that <code>vdata</code> is always greater than or equal to <code>entrydate</code>. The code below is not working.</p>

<p>Please help to identify what the problem is with the this code:</p>

<pre><code>if(document.Step2.entrydate.value &lt;= document.all(vData).value)
</code></pre>
