title: jQueryUI DatePicker YearRange and ChangeYear problems
body: <p>I have a datepicker on an application form. We only allow applications where the date of birth is within a certain age range. I enabled ChangeYear and set the YearRange to "-65:-16". The problems I am having are as follows:</p>
  
  <p>1 - When I select a date without first selecting something in the year dropdown, I get the correct month and day, but I get 2016 as a year. </p>
  
  <p>2 - Trying to fix this I set the YearRange to "n-65:n-16". That causes the year dropdown to only display the current year (2010). Even weirder is that if you select a date, you still get the correct month and day, and the year 2016.</p>
  
  <p>Here is the code I use to setup the datepicker:</p>
  
  <pre><code>    &lt;script type="text/javascript"&gt;
      $(document).ready(function (e) {
          Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequestHandler);
  
          function EndRequestHandler(sender, args) {
              $(function () {
                  $("#DateOfBirth").datepicker({ yearRange: '-65:-13', changeMonth: true, changeYear: true, defaultDate: '1-1-1994', dateFormat: 'mm-dd-yy' })
              });
          }
  
          $(function () {
              $("#DateOfBirth").datepicker({ yearRange: '-65:-13', changeMonth: true, changeYear: true, defaultDate: '1-1-1994', dateFormat: 'mm-dd-yy' })
          });
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>I am hoping this is something I have done wrong, and someone can tell me what that is. Thanks for any help.</p>