title: Issue disabling years below 18 years in bootstrap datepicker
body: <p>Working on a form whereby am using bootstrap datepicker to display date to the user. I have a date of birth field whereby am trying to disable years of any user that is below 18 years from the current date. For instance since we are in 2019, the datepicker should only show years below 2001 e.g 2001 , 2000, 1999 , 1998 , 1997 etc</p>
  
  <p>This works fine (years) but I have a problem disabling the months and the specific days, For instance since we are in 01/02/2019 , the datepicker should disable any date after 1st February 2001</p>
  
  <p><strong>Date of birth</strong></p>
  
  <pre><code>//dob
  &lt;div class="form-line registar love"&gt;
        &lt;input type="text" placeholder="Date of Birth *" class="form-input" name="dob" id="dob" value="#" title="You should be over 18 years old" required&gt;
  
        &lt;label class="error error-tip" for="dob" id="dobErr" style="display: none; color:red; font-size: 11px;"&gt;You should be over 18 years old&lt;/label&gt;
   &lt;/div&gt;
  //end dob
  </code></pre>
  
  <p><strong>Javascript Logic</strong></p>
  
  <pre><code>var maxBirthdayDate = new Date();
  maxBirthdayDate.setFullYear( maxBirthdayDate.getFullYear() - 18 );
  maxBirthdayDate.setMonth(11,31);
  $( function() {
    $( "#dob" ).datepicker({
      changeMonth: true,
      changeYear: true,
      dateFormat: 'yy-mm-dd',
      maxDate: maxBirthdayDate,
      yearRange: '1900:'+maxBirthdayDate.getFullYear(),
    });
  });
  </code></pre>