title: Date validation with JavaScript
body: <p>I have a date string in this format - "DD-MM-YYYY"
  this validates that successfully:</p>
  
  <pre><code>var dateFormat = /(0[1-9]|[12][0-9]|3[01])-(0[1-9]|1[012])-\d{4}/ ;
  if(!startDate.match(dateFormat)){
      alert("'Start Date' must be in format: DD-MM-YYYY");
      return false;
  </code></pre>
  
  <p>I need to check that the inserted date is after today's date(or today's date).
  how can i do that with JavaScript?</p>
  
  <p>I've tried this:
  <a href="http://www.redips.net/javascript/date-validation/" rel="nofollow">http://www.redips.net/javascript/date-validation/</a>
  with the separator, didn't work. suggestions?</p>