Calendar: CalendarWeekRule

CalendarWeekRule

Inidicates how many days of the beginning of January must the first week contain in order to be counted as the first week.

 Public Enum CalendarWeekRule

Values

FirstDay
The first defined week that contains the first day of January is considered the first week of the year.
FirstFullWeek
The first defined week that contains 7 days of January is considered the first week of the year.
FirstFourDayWeek
The first defined week that contains the first 4 days of January is considered the first week of the year.

Remarks

When a full week of 7 days from January is required, the week may not contain January 1st to 6th, since up to the first 6 days of January may exist in the same week and the week would not have 7 days from January in it as it may contain parts of the previous December. Those days would not count towards the number of weeks in the year.

See Also

Project CorLib Overview

Class Calendar Overview