title: jQuery Datepicker - Limit range to 7 WORKING days ahead (Excluding weekends)
body: <p>As the title says, I'm trying to get the jQuery Datepicker to allow the user to select dates from the next 7 working days. I've searched everywhere for a solution but the closest I've found is where the earliest date that can be selected is x days from today. I need to limit the selectable range.</p>
  
  <p>So for instance if today is Monday the 1st, then I want the range to be the 2nd to the 10th because I don't want to include Saturday or Sunday.</p>
  
  <p>So the the Datepicker should only allow only the 2nd(Tue), 3rd(Wed), 4th(Thu), 5th(Fri), 8th(Mon), 9th(Tue) and 10th(Wed).</p>
  
  <p>Obviously these are just example dates, I'd like them for any current date.</p>
  
  <p>My code is below;</p>
  
  <pre><code>&lt;script&gt;
  $(function () 
      {
         var date = new Date();
         var currentMonth = date.getMonth();
         var currentDate = date.getDate();
         currentDate = currentDate;
         var currentYear = date.getFullYear();
  
         $('#datepicker2').datepicker(
         {
          dateFormat: "yy-mm-dd",
          beforeShowDay: $.datepicker.noWeekends,
          minDate: new Date(currentYear, currentMonth, currentDate)
         }); 
    });
    &lt;/script&gt;
  </code></pre>
  
  <p>Any help would be appreciated :-)</p>
  
  <p>Matt.</p>