Please, I am trying to compare hours (type Open Now / Closed Now). But I can not. To save the current time, I'm using:
object.put("h11", h11.getText().toString());
object.put("h22", h22.getText().toString());
But it is saved as String; To get the current time I'm doing this:
SimpleDateFormat hora = new SimpleDateFormat("HH");
Date data = new Date();
Calendar cal = Calendar.getInstance();
cal.setTime(data);
Date data_atual = cal.getTime();
String hora_atual = hora.format(data_atual);
It's not working. Could someone give me a hint how to compare time? Thank you