private String defineDay(int day) {

        String dayOfWeek;

        switch (day) {
            case 0:
                dayOfWeek = "Mon";
                break;
            case 1:
                dayOfWeek = "Tue";
                break;
            case 2:
                dayOfWeek = "Wed";
                break;
            case 3:
                dayOfWeek = "Thu";
                break;
            case 4:
                dayOfWeek = "Fri";
                break;
            case 5:
                dayOfWeek = "Sat";
                break;
            case 6:
                dayOfWeek = "Sun";
                break;
            default:
                dayOfWeek = "Unknown";
                break;
        }
        return dayOfWeek;
    }