title: JQuery UI Datepicker newDate minus 2 months
body: <p>I have been searching everywhere but can't seem to find a solution to this problem.</p>
  
  <p>I need to set the datepickers input value to today's date minus 2 months.</p>
  
  <p>I am using the following code to display today's date by default in the input field...</p>
  
  <pre><code>jQuery(function () {
  jQuery("#datepicker").datepicker({
      dateFormat: 'dd-mm-yy'
  });
  var day = new Date();
  var month = day.getMonth() + 1;
  var date = day.getDate() + '-' + month + '-' + day.getFullYear();
  jQuery("#datepicker").val(date);
  });
  </code></pre>
  
  <p>Is there a way it can show 2 months prior?</p>
  
  <p>Any help would be much appreciated.</p>