title: Javascript date.getYear() returns 111 in 2011?
body: <p>I have this javascript for automatically setting a date filter to the first and last day of the previous month:</p>
  
  <pre><code>$(document).ready(function () {
      $("#DateFrom").datepicker({ dateFormat: 'dd/mm/yy' });
      $("#DateTo").datepicker({ dateFormat: 'dd/mm/yy' });
  
      var now = new Date();
      var firstDayPrevMonth = new Date(now.getYear(), now.getMonth() - 1, 1);
      var firstDayThisMonth = new Date(now.getYear(), now.getMonth(), 1);
      var lastDayPrevMonth = new Date(firstDayThisMonth - 1);
  
      $("#DateFrom").datepicker("setDate", firstDayPrevMonth);
      $("#DateTo").datepicker("setDate", lastDayPrevMonth);
  }); 
  </code></pre>
  
  <p>BUT <code>now.getYear()</code> is returning 111 instead of the expected 2011.  Is there something obvious I've missed?</p>