Capitulo 6. Busquedas en Fechas

Capitulo 6. Busquedas entre Fechas

betweendate()

Busca entre fechas

public String betweenDate() {

    try {
      filterToString =
          rf.getMessage("filter.desde")
              + DateUtil.isoDateToString(startDate)
              + rf.getMessage("filter.hasta")
              + DateUtil.isoDateToString(endDate);
      boletasList =
          boletasServices.betweendate(
              "fechainicial",
              DateUtil.isoDateToString(startDate),
              "fechafinal",
              DateUtil.isoDateToString(endDate));
      if (boletasList == null || boletasList.isEmpty()) {
        JsfUtil.successMessage(rf.getMessage("warning.nohayboletasentrefechas"));
      }
      boletasDataModel = new BoletasDataModel(boletasList);
    } catch (Exception e) {
      JsfUtil.errorDialog(JsfUtil.nameOfMethod(), e.getLocalizedMessage());
    }
    return "";
  }

Filtrar entre fechas de un List<Entity>

Para filtrar entre fechas de un List<Entity>

Last updated

Was this helpful?