Hi
I am building a booking system for which i need to block out certain times on specific dates. For that I need a plugin that must disable specific times using an array. Any suggestions!!!
<script> // Array with disabled times and days const disabledTimes = [ { day: "2024-12-25", times: ["10:00", "14:00"] }, // Christmas: closed between 10:00 and 14:00 { day: "2024-12-31", times: ["18:00", "22:00"] } // New Year's Eve: closed between 6:00 p.m. and 10:00 p.m. ];
Kommentar