Share via


Overview | Methods | This Package | All Packages

OverviewMethodsThis PackageAll Packages

Locale.getFirstWeekOfYear

Retrieves a value representing the first week of the year for the current locale. 

Syntax

public int getFirstWeekOfYear()

Return Value

Returns an integer that identifies the first week of the year for the current locale.

Remarks

Use this method to retrieve the first week of the year for a locale. The value returned by the getFirstWeekOfYear method can be one of the following values:

Values Description
0 The week that contains January 1st is the first week of that year.
1 The first full week following January 1st is the first week of the year.
2 The first week that contains at least four days is the first week of that year.

See Also setFirstWeekOfYear