Time calculation

Hi, I have a problem… it’s a reservation app that creates a time slot in the database (00:00, 01:00, 02:00, etc) and I put a code on each one, when a user makes a reservation must be 5 hours, time slot 2 - time slot 1 … then I have cod 2 - cod 1 left … example 4:00 p.m. to 9:00 p.m. It is when they make a reservation that begins at 18:00 and ends the next day at 03:00 (it would be 03-18 and there it gives me an error… how would they do it?

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.