@Override
    public DayInWeek getDayInWeek() {
        DayInWeek diwEnum = null;
        int day = calendar.get(Calendar.DAY_OF_WEEK);

        if (day == 1) {
            diwEnum = DayInWeek.SUN;
        } else if (day == 2) {
            diwEnum = DayInWeek.MON;
        } else if (day == 3) {
            diwEnum = DayInWeek.TUE;
        } else if (day == 4) {
            diwEnum = DayInWeek.WED;
        } else if (day == 5) {
            diwEnum = DayInWeek.THU;
        } else if (day == 6) {
            diwEnum = DayInWeek.FRI;
        } else if (day == 7) {
            diwEnum = DayInWeek.SAT;
        }
        return diwEnum;
    }