1
I have an agenda where I register an appointment, that commitment has Hora Inicial
and Hora Final
. However now when I register a new appointment I have to make a check to see if the hours are not between the hours already registered. Example:
I have an appointment with Home Time 13:00
and Final Hour: 14:00
On today’s date. How do I check this time period to not let anything be registered in this interval of 13:00
as 14:00
?
You need to do this via Mysql or java?
– Wellington Avelino
I need to do Mysql by spending two hours as parameter.
– DiegoAugusto
I thought about doing it this way: Whenever I go to save an appointment I make a query in the bank spending two hours as parameter, starting time and end time. From there in the bank I make a check to see if the hours passed as parameter are within the period of some already saved commitment. But I do not know if it is possible to do this in bank rsrs
– DiegoAugusto
As I said in the other question I’m very busy these days, you can do something with the command
BETWEEN
mysql where you test something during an interval that in case would be between 13 and 14. If you do not get anything at home put an example,– Wellington Avelino
I’ll try to use the BETWEEN, thanks for sending the tip.
– DiegoAugusto