title: min and max date on Datepicker won't work on my project
body: <p>I have an input field that isusing datepicker. I am trying to set it so the calendar shows as active only weekdays. past dates and dates 1 month ahead of the current date are aimed to be shown as inactive.</p>
  
  <p>Currently, only the weekends are shown as inactive. The past dates are still shown as active.
  Can someone please help me fix this?</p>
  
  <pre><code>&lt;input id="date" type="text " class="form-control datepicker" name="date" value="Click to select a date"&gt;
  
  
  
  $(function() {
              $(".datepicker").datepicker({
                  maxDate: '+1m', //+1m is 1 month from now
                  minDate: '0', //allow only from now on
                  daysOfWeekDisabled: [0, 6],
                  orientation: 'auto'
              });
  </code></pre>