0
I have a register where the establishment puts its opening hours in variables String, Ex: horario_abertura
and horario_fechamento
format: 00:00 24hrs.
I need the application to compare the current time with the opening and closing of the establishment, to inform if it is open or closed!
Does anyone have an example?
Thanks for the reply, is comparing but only in 12hrs format. When the time exceeds noon it is always closed.
– Rodrigo Cecilio
Actually when it passes half a day does not enter the if
– Rodrigo Cecilio
I edited the answer.
– Reginaldo Rigo
Thank you! It worked perfectly.
– Rodrigo Cecilio