Hi,
i'm trying to block time between start time and end time.
I have 4 drop downs
start time - hours and minutes
end time - hours and minutes

User can book only 2 hours / slot
If one user blocks the time between 8am - 10am, others should not be allowed to book time slot btw 8-10
only can book before or after hours.

tried the above code by comparing date and time, but when user changes minutes value, it is allowing to book the slot. because it is not matching the exact value. >/ < are not working.
please help.
Thank you.