class DateFilterHelper {

  protected Calendar getCalendar() {
    return Calendar.getInstance(Locale.FRANCE);
  }

  @SuppressWarnings("ControlFlowStatementWithoutBraces")
  protected int getDayOfWeek(String dayStr) {
    String day = dayStr.toLowerCase();
    if (day.equals("do") || day.equals("domingo")) return Calendar.SUNDAY;
    if (day.equals("lu") || day.equals("lunes")) return Calendar.MONDAY;
    if (day.equals("ma") || day.equals("martes")) return Calendar.TUESDAY;
    if (day.equals("mi") || day.equals("miércoles")) return Calendar.WEDNESDAY;
    if (day.equals("ju") || day.equals("jueves")) return Calendar.THURSDAY;
    if (day.equals("vi") || day.equals("viernes")) return Calendar.FRIDAY;
    if (day.equals("sa") || day.equals("sábado")) return Calendar.SATURDAY;
    throw new RuntimeException("Could not find day of week for '" + dayStr + "'");
  }

  @SuppressWarnings("ControlFlowStatementWithoutBraces")
  protected String getDayOfWeek(Calendar date) {<FILL_FUNCTION_BODY>}

  @SuppressWarnings({"ControlFlowStatementWithoutBraces", "MagicNumber"})
  protected int getMonth(String monthStr) {
    String mon = monthStr.toLowerCase();
    if (mon.startsWith("en")) return 1;
    if (mon.startsWith("fe")) return 2;
    if (mon.startsWith("mar") || mon.startsWith("mzo")) return 3;
    if (mon.startsWith("ab")) return 4;
    if (mon.startsWith("may") || mon.startsWith("my")) return 5;
    if (mon.startsWith("jun") || mon.equals("jn")) return 6;
    if (mon.startsWith("jul") || mon.equals("jl")) return 7;
    if (mon.startsWith("ag")) return 8;
    if (mon.startsWith("se") || mon.startsWith("sep")) return 9;
    if (mon.startsWith("oc")) return 10;
    if (mon.startsWith("no")) return 11;
    if (mon.startsWith("di")) return 12;
    throw new RuntimeException("Could not find month '" + monthStr + "'");
  }
}

    String englishDay = date.getDisplayName(Calendar.DAY_OF_WEEK, Calendar.LONG, Locale.UK);
    if (englishDay.equals("Sunday")) return "domingo";
    if (englishDay.equals("Monday")) return "lunes";
    if (englishDay.equals("Tuesday")) return "martes";
    if (englishDay.equals("Wednesday")) return "miércoles";
    if (englishDay.equals("Thursday")) return "jueves";
    if (englishDay.equals("Friday")) return "viernes";
    if (englishDay.equals("Saturday")) return "sábado";
    return "";
  
<no_super_class>