title: jQuery datepicker mindate, maxdate
body: <p>I have the two following datepicker objects but I can't get what I want as I am getting stuck with the minDate and maxDate options:</p>
  
  <p><strong>This is to restrict the dates to future dates.</strong></p>
  
  <p><strong>What I want</strong>: restrict the dates from current date to 30 years time.</p>
  
  <p><strong>What I get</strong>: restrict the dates from current date to 10 years time.  </p>
  
  <pre><code>$(".datepickerFuture").datepicker({
      showOn: "button",
      buttonImage: 'calendar.gif',
      buttonText: 'Click to select a date',
      duration:"fast",
      changeMonth: true,
      changeYear: true,
      dateFormat: 'dd/mm/yy',
      constrainInput: true,
      minDate: 0,
      maxDate: '+30Y',    
          buttonImageOnly: true
      });
  </code></pre>
  
  <p><strong>This is to restrict to select only past dates</strong>:</p>
  
  <p><strong>What I want</strong>: restrict the dates from current date to 120 years ago time.</p>
  
  <p><strong>What I get</strong>: restrict the dates from current date to 120 years ago time, but when I select a year the maximum year will reset to selected year (e.g. what I would get when page load from fresh is 1890-2010, but if I select 2000 the year select box reset to 1880-2000) . </p>
  
  <pre><code>$(".datepickerPast").datepicker({
      showOn: "button",
     buttonImage: 'calendar.gif',
      buttonText: 'Click to select a date',
      duration:"fast",
      changeMonth: true,
      changeYear: true,
      dateFormat: 'dd/mm/yy',
      constrainInput: true,
      yearRange: '-120:0',
      maxDate: 0,
      buttonImageOnly: true
  });
  </code></pre>
  
  <p>I need help with both datepicker object, any help would be very much appreciated.</p>