validate form date filed in javascript
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/13481353/js-date-format-and-date-comparison">JS date format and date comparison</a>  </p>
</blockquote>



<p>I have this javascript and i want to write code to make sure the date is in the future.
the format of the date is like this</p>

<p>dd/mmm/yyyy eg. 24-NOV-2012</p>

<pre><code>var date = $j('#date').val();

if(date =='' || date is not a date in the future){  
dateError = 1;
}
</code></pre>
