setWeekOfYear()
Sets the value of the Week of Year
calendar
field.
Syntax
Calendar setWeekOfYear(Numeric value)
- value is the week of year to set.
Usage
For example, set the value of the
Week of Year
calendar field by
calling:Calendar.fromDate(Date.parseString("07/05/1999","mm/dd/yyyy")).setWeekOfYear(9).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/05/1999","mm/dd/yyyy")).setWeekOfYear(9).toDate()