| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
CalendarWeekRule EnumerationSystem.Globalization Namespace Defines different rules for determining the first week of the year. Members
RemarksThese calendar week rules depend on the System.DayOfWeek value that is designated as the first day of the week. The DateTimeFormatInfo.FirstDayOfWeek property provides the default value for a culture, but any DayOfWeek value can be specified as the first day of the week in the Calendar.GetWeekOfYear method. The first week based on the FirstDay value can have one to seven days. The first week based on the FirstFullWeek value always has seven days. The first week based on the FirstFourDayWeek value can have four to seven days. For example, in the Gregorian calendar, suppose that the first day of the year ( January 1 ) falls on a Tuesday and the designated first day of the week is Sunday. Selecting FirstFullWeek defines the first Sunday ( January 6 ) as the beginning of the first week of the year. The first five days of the year are considered part of the last week of the previous year. In contrast, selecting FirstFourDayWeek defines the first day of the year ( January 1 ) as the beginning of the first week of the year because there are more than four days from January 1 to the day before the following Sunday.
Suppose the first day of the year ( January 1 ) falls on a Friday and the designated first day of the week is Sunday. Selecting FirstFourDayWeek defines the first Sunday ( January 3 ) as the beginning of the first week of the year because there are fewer than four days from January 1 to the day before the following Sunday.
See Also |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Check out related books at Amazon
© 2000-2008 Rey Nuñez All rights reserved.
If you have any question, comment or suggestion
about this site, please send us a note
You can help support aspxtreme