title: Bootstrap datepicker - range between dates where is selectable
body: <p>i have two same calendars with equal disabled dates and I need to calculate range between dates where is selectable.. How to detect date is not enabled?</p>
  
  <p><strong>This is my UI:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/GG7Ed.png" rel="nofollow noreferrer">enter image description here</a></p>
  
  <p>T<strong>his is my all code for bootstrap DatePicker:</strong></p>
  
  <pre><code>      $("#holidayDateFrom").datepicker({
          format: 'dd/mm/yyyy',
          autoclose: true,
          language: 'bg',
          weekStart: 1,
          calendarWeeks: true,
          todayHighlight: true,
          //datesDisabled: datesForDisable,
          //daysOfWeekDisabled: [0, 6],
          beforeShowDay: function (currentDate) {
              var dayNr = currentDate.getDay();
              //you can access your array through the function's scope 
              if (dayNr == 6 || dayNr  == 0) {//you can  condition this with your  own logic
                  return false;
              }  
         })
      .on('changeDate', function (e) {
          // Revalidate the date field
          $("#addHoliday_form").bootstrapValidator('revalidateField', 'holidayDateFrom');
          if ($("#holidayDateToValue").val()) {
              $("#addHoliday_form").bootstrapValidator('revalidateField', 'holidayDateTo');
          }
      });
  </code></pre>