How can I check if the operating_table is within the selected range? Example: a bar works from 8:00 am to 1:00 p.m., a user chose the time interval from 12:00 to 9:00 p.m., how to check if this bar is open in that chosen time range?
var intervalo_escolhido = [12,21];
var horario_funcionamento = [08,13];