'Script about Restricting Days in WPForms

Im trying to select from day 8 since today, but can't get to this and time is coming to an end.

Maybe someone can point me in the right direction on what's wrong with my code?

<script>
 
      // Find out the current time
      var now = new Date();
 
      // Take that current time and round it up so we have an even number on the interval
      now.setHours( now.getHours() + Math.round(date.getMinutes()/90) );
        
      window.wpforms_999_8 = window.wpforms_999_8 || {};
      window.wpforms_999_8.timepicker = {
         forceRoundTime: true,
 
         // Disable any times that have passed already and return the new time selections
         minTime: now+8.toLocaleTimeString()
      };
      
      new customDatePicker();
} );
</script>


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source