setFirstDayOfWeek()
Sets what the first day of the week is, for example, 1
(Sunday)
in the U.S. or 2 (Monday)
in
France.
Syntax
Calendar setFirstDayOfWeek(Numeric value)
- value is the first day of the week.
Usage
For example, set the value of the first day of the week by
calling:
Calendar.fromDate(Date.parseString("07/10/1999","mm/dd/yyyy")).setFirstDayOfWeek(6).toDate().format("mm/dd/yyyy")
This
example populates a Word Box. To achieve the same goal and populate a Date
box,
call:Calendar.fromDate(Date.parseString("07/10/1999","mm/dd/yyyy")).setFirstDayOfWeek(6).toDate()