Maybe a stupid question, but I have a question I didn't find in the Java documentation.
Does the value of Calendar.get(Calendar.DAY_OF_WEEK)
change based on any value change of Calendar.getFirstDayOfWeek()
?
Or does Calendar.get(Calendar.DAY_OF_WEEK)
always give the correct answer (based on the current locale)?
Does the value of
Calendar.get(Calendar.DAY_OF_WEEK)
change based on any value change ofCalendar.getFirstDayOfWeek()
No. Sunday is Sunday (Calendar.SUNDAY
), regardless of whether that's the first day of the week, the second or the seventh. (If you're using a non-Gregorian calendar which may have entirely different week days, that's a different matter of course.)
See more on this question at Stackoverflow