title: How to disable specific dates in angular material datepicker
body: <p>How can I disable specific dates based on the current date, let's say that today is 8/1/16, I want to disable 4 days (4 it's an example it could be any number) after the current date weekends days doesn't count,</p>
  
  <p>Example if today is 8/1/16 I want to disable  8/2/16 , 8/3/16, 8/4/16 and 
  8/5/16, and the dates that would be available would be the ones that are after 8/8/16.</p>
  
  <p>At the moment I only know how to disable all the weekend days in the calendar with this filter </p>
  
  <pre><code>$scope.disableSelectedDays = function () {
  
                  //I create a New moment since I always going to need the current date
                  var momentJS = new moment();
  
                  if (momentJS &lt;= moment().add(4, 'days')) {
                      return false;
                  } else {
                      //Just disable the weekends
                      var day = date.getDay();
                      return day === 1 || day === 2 || day === 3 || day === 4 || day === 5;
                  }
              }
  </code></pre>
  
  <p>this is my html </p>
  
  <pre><code>&lt;div class="form-group"&gt;
                                  &lt;label&gt;Delivery date:&lt;/label&gt;
                                  &lt;md-datepicker ng-model="myDate" md-placeholder="Enter date"
                                                 md-date-filter="disableSelectedDays"&gt;
                                  &lt;/md-datepicker&gt;
                              &lt;/div&gt;
  </code></pre>
  
  <p>this are the versions that I'm using
  angular-maeria: v1.1.0-rc.5
  datepicker: datepicker from angular material v1.1.0-rc4-master-88f2e3f</p>
  
  <p><strong>EDIT 1</strong></p>
  
  <p>I edited my code with your answer but now all the days in the datepicker are disabled I can't select anything, what I'm doing wrong?</p>
  
  <p>I added this libaries moment libraries</p>
  
  <p>moment.js version : 2.14.1
  angular-moment <a href="https://github.com/urish/angular-moment" rel="nofollow">https://github.com/urish/angular-moment</a></p>