addWeekOfYear()
Adds or subtracts the specified amount of time to the given
Week of Year
field, based on the calendar's rules.
Syntax
Calendar addWeekOfYear(Numeric amount)
- amount is the amount of date or time to be added to the
Week of Year
field.
Usage
For example, to subtract 5 weeks from the current time of the
Week of Year
field, you can achieve it by
calling:addWeekOfYear(-5)