getWeeksInWeekYear()

Returns the number of weeks in the week year represented by this calendar.

Syntax

Numeric getWeeksInWeekYear()

Usage

For example, return the number of weeks in the week year by calling:
Calendar.fromDate(Date.parseString("12/31/2009","mm/dd/yyyy")).getWeeksInWeekYear()

This example populates a Decimal Format Box.

If this calendars's date is December 31, 2008 with the ISO 8601 compatible setting, this method returns 53 for the period: December 29, 2008 to January 3, 2010 while getActualWeekOfYearMaximum() returns 52 for the period: December 31, 2007 to December 28, 2008.