title: Jquery datepicker disable multiple dates with range
body: <pre><code>var check_in = ["Nov Thu 23, 2017","Nov Fri 24, 2017","Nov Mon 27, 2017"];
  
  $('#check-in-date').datepicker({
  dateFormat: 'M D d, yy',
  beforeShowDay: function(date){
      var string = jQuery.datepicker.formatDate('M D d, yy', date);
      return [ check_in.indexOf(string) == -1 ]
  }
  });
  </code></pre>
  
  <p>This is my code I tried. Its working fine but my problem is I can only disable array dates. But I want to disable also <strong>Nov Thu 23, 2017 - Nov Mon 27, 2017</strong></p>
  
  <p><strong><em>BTW array dates coming from a PHP loop.</em></strong></p>
  
  <p>can anybody please help me out.</p>
  
  <p>Thanks.</p>