Locale.setFirstWeekOfYear

Overview | Methods | This Package | All Packages

Locale.setFirstWeekOfYear

Sets the criteria for determing which week to use as the first week of the year.

Syntax

public void setFirstWeekOfYear( int value )

Parameters

value

An integer value specifying which week to use as the first week of the year.

Remarks

When using this method to designate the first week of the year, use the values from the following table:

Value Description
0 Week containing 1/1 is the first week of that year.
1 First full week following 1/1 is the first week of that year.
2 First week contains at least 4 days is the first week of that year.

See Also   getFirstWeekOfYear