title: jQuery UI Datepicker Gravity Forms mindate 1 day after 5pm
body: <p>I am trying to get gravity forms to stop showing next day available after 5pm of the current day. Below is what I am currently using to not show weekends and same day.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>&lt;script&gt;
  function noSaturdays(date) {
      var weekday=new Array(7);
      weekday[0]="Sunday";
      weekday[1]="Monday";
      weekday[2]="Tuesday";
      weekday[3]="Wednesday";
      weekday[4]="Thursday";
      weekday[5]="Friday";
      weekday[6]="Saturday";
      //console.log(weekday[date.getDay()]);
      if(weekday[date.getDay()] == 'Saturday') {
          return [false, '', 'Not available Saturdays'];
          }else if(weekday[date.getDay()] == 'Saturday') {
                   return [false, '', 'Not available Saturdays'];
          }
   //console.log(weekday[date.getDay()]);
      if(weekday[date.getDay()] == 'Sunday') {
          return [false, '', 'Not available Sundays'];
          }else if(weekday[date.getDay()] == 'Sunday') {
                   return [false, '', 'Not available Sundays'];
          }
  
      return [true];
  }
  jQuery(window).load(function(){
      jQuery('.hasDatepicker').datepicker('option', 'beforeShowDay', noSaturdays);
  });
  &lt;/script&gt;  
  
  
  
  &lt;script type="text/javascript"&gt;
  jQuery(document).ready(function($) {
      $(".datepicker").datepicker({ minDate: 1,dateFormat: 'mm/dd/yy' 
  
  });
  });
  &lt;/script&gt;</code></pre>
  </div>
  </div>
  </p>