title: How to validate date of birth that should be less than 18 years old in Codeigneter
body: <p>I used so many stuff but I am unable to validate date of birth should be less than 18 years old  </p>
  
  <pre><code>&lt;?php echo form_error('DOB'); ?&gt;
  &lt;div class="form-group"&gt;
  &lt;label class="col-sm-3 control-label" for="form-field-3" &gt;
    Date Of Birth
  &lt;/label&gt;
  &lt;div class="col-sm-8"&gt;
  &lt;input type="text"  class="form-control" id="datepicker" name="DOB" placeholder="Date Of Birth" value="&lt;?php echo set_value('DOB'); ?&gt;"  &gt;
  </code></pre>