title: JQuery: How to set datepicker starting date in range
body: <p>I am trying to set the start and end date of a date range of a <code>datepicker()</code>, where the starting date of the range is 7 days in the past and the ending date is yesterday.</p>
  
  <p>Currently I have it working so that the starting date of the range is 7 days in the past however I don't know how to set the ending date to yesterday.</p>
  
  <p>I have tried the following, but it doesn't work as I expect it to:</p>
  
  <pre><code>var mindate = new Date();
      mindate.setDate(mindate.getDate() - 7);
      $('#date').datepicker({
          language: 'en',
              range : true,
              minDate : mindate,
              maxDate : new Date() - 1,   //I guess the problem is here
              multipleDates: true,
              multipleDatesSeparator: " - "
      })
  </code></pre>