title: How do I disable weekends and specific dates in this code for date picker?
body: <p>I am using a plugin on woocommerce and I need to disable sundays and some specific dates (Xmas holidays) on date picker. Your help is much appreciated.
  I have managed to disable the today date but I am struggling to do the rest.</p>
  
  <p>Also is there a way of adding a if statement that if time is > 17:00 automatically datepicker changes to +2 days and else just +1?</p>
  
  <pre><code>(function( $ ) {  $(function() {
     if ($('.pcfme-datepicker').length) {
       $('.pcfme-datepicker').datepicker({
         dateFormat : 'dd-mm-yy'
     });
     }
     var dateToday = new Date(); 
    dateToday.setDate(dateToday.getDate() + 1);
     if ($('.pcfme-datepicker-disable-past').length) {
       $('.pcfme-datepicker-disable-past').datepicker({
         dateFormat : 'dd-mm-yy',
         minDate: dateToday
     });
     }
  
  });
  </code></pre>