setMinimalDaysInFirstWeek()
Sets the minimal days required in the first week of the year.
For example, if the first week is defined as one that contains the first day of the first month of a year, call this method with a value of 1. If it must be a full week, use a value of 7.
Syntax
Calendar setMinimalDaysInFirstWeek(Numeric value)
- value is the minimal days required in the first week of the year.
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")).setMinimalDaysInFirstWeek(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")).setMinimalDaysInFirstWeek(6).toDate()