WorkingDaysOfWeek Enum
Definition
Represents a named pattern of working days within a seven-day week.
public enum WorkingDaysOfWeek
- Extension Methods
Fields
MondayToFriday = 0Indicates a Monday through to Friday working week (Western standard).
MondayToSaturday = 1Indicates a Monday through to Saturday working week.
MondayToThursdayAndSaturday = 2Indicates a Monday through to Thursday, and Saturday working week.
SaturdayToThursday = 3Indicates a Saturday through to Thursday working week (e.g. parts of the Middle East).
SaturdayToWednesday = 4Indicates a Saturday through to Wednesday working week.
SundayToFriday = 5Indicates a Sunday through to Friday working week.
SundayToThursday = 6Indicates a Sunday through to Thursday working week (e.g. Israel, parts of the Middle East).
Custom = 7Indicates a non-standard working week whose pattern is supplied externally via a WeekPattern.
AllDays = 8Indicates that every day of the week is treated as a working day (no weekend is defined).
Use this value when the working week has no rest day - for example, an "always on" service schedule or regional configurations that do not define a standard weekend.
Remarks
WorkingDaysOfWeek enumerates the commonly observed working-week patterns across global regions. Each named value maps to a canonical WeekPattern preset and is interchangeable with the bitmask representation through the conversion extension methods on WorkingDaysOfWeekExtensions.
Use a named value when the working week is one of the listed patterns; use Custom together with a caller-supplied WeekPattern when the working week is non-standard (for example a four-day week or an unevenly distributed schedule).
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |