title: Setting year in date picker according to current year
body: <p>I want to limit the starting year of datepicker to 70 years back of current year and end year to 18 years back of current year. The code I tried is as shown below:</p>
  
  <pre><code>$(function() {
      var endyear=new Date().getFullYear()-18;
      var startyear=new Date().getFullYear()-70;
      $('#dob').datepick({
      changeMonth: true,
      changeYear: true,
      yearRange: endyear:startyear
      });
  });
  </code></pre>
  
  <p>But this is not working. How can I set the start and end date as calculated, in jquery datapicker. </p>
  
  <p>Also I want to start the month from the current month and all past dates of current day in the datepicker should be disabled. ie, if current date in datepicker is 05/02/1996, then the dates 01 to 04 should be disabled. I am doing this for restricting users from selecting a date which is invalid for age (ie for those who selects a dob 18years below). How can I achieve this?</p>