title: Disable Months On Month/DatePicker
body: <p>Please look at my <a href="http://jsfiddle.net/RWY2X/31/" rel="noreferrer">fiddle</a>.</p>
  
  <p>I have a monthpicker which only allows users to select a year in advance but what I want is for past months to be disabled and also any months after a year in advance to be disabled but I cant figure out how to get this to work.</p>
  
  <p>Example Scenario
  Current month is 'October' so for 'Year 2015' months 'Jan to Sept' will be disabled and months 'Nov to Dec' will be disabled for 'Year 2016'</p>
  
  <p>I have tried using minDate: "0" and maxDate: "1y" but they don't work.</p>
  
  <p><strong>HTML</strong></p>
  
  <pre><code>&lt;div class="input-group date" style="width: 200px"&gt;
      &lt;input type="text" id="example1" class="form-control" style="cursor: pointer"/&gt;
          &lt;span class="input-group-addon"&gt;
              &lt;i class="glyphicon glyphicon-calendar"&gt;&lt;/i&gt;
          &lt;/span&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>JQuery</strong></p>
  
  <pre><code>$('#example1').datepicker
  ({
      format: "MM yyyy",
      minViewMode: 1,
      autoclose: true,
      startDate: new Date(new Date().getFullYear(), '0', '01'),
      endDate: new Date(new Date().getFullYear()+1, '11', '31')
  });
  </code></pre>