title: How can I validate that someone is over 18 from their date of birth?
body: <p>I am doing validation for Driver's Date of birth, it should be minimum of 18 from the current date.</p>
  
  <pre><code>var Dates = $get('&lt;%=ui_txtDOB.ClientID %&gt;');   
  var Split = Dates.value.split("/");
  
  if (parseInt(Split[2]) &gt; 1993) 
  {
      alert("DOB year should be less than 1993");
      Dates.focus();
      return false;
  }  
  </code></pre>
  
  <p>I am using this above JavaScript validation for checking a person's DOB above 18, but it is not correct. I need to check with today's date and it should be above 18.  How can I compare and check with the current date?</p>