title: Setting Date Picker to select a Birthdate in the past MaterializeCss
body: <p>I am trying to use MaterializeCss date-picker form field to set a birthday. </p>
  
  <pre><code>  $('.datepicker').pickadate({
      selectMonths: true, // Creates a dropdown to control month
      selectYears: 15 // Creates a dropdown of 15 years to control year
    });
  </code></pre>
  
  <p>is what i am currently using, however this gives a total of 15 years in total 7 years before todays year and 7 years after. how can I only allow for present year - 80 years for example.. </p>
  
  <p>if I do something like:</p>
  
  <pre><code>  $('.datepicker').pickadate({
      selectMonths: true, // Creates a dropdown to control month
      selectYears: -15 // Creates a dropdown of 15 years to control year
    });
  </code></pre>
  
  <p>the year menu totally disappears. </p>
  
  <p>How can I achieve this? </p>