I'm confused about how a Gregorian Calendar associates days with numbers. For examples, I instantiate an object
GregorianCalendar cal = new GregorianCalendar();
Toast.makeText(context, "Day: " + cal.DAY_OF_WEEK, Toast.LENGTH_LONG).show();
My toast messages keeps dispalying "Day: 7"
Today is Friday, assuming that Sunday = 0, shouldn't the text display "Day: 5"?
It does work when I do the following:
int current day = cal.get(Calendar.DAY_OF_WEEK)
Can someone explain why? Thank you.