WeekOrdinal Enum
Definition
Specifies the ordinal position of a weekday within a given month. Commonly used in recurrence rules, such as "the second Tuesday of the month".
public enum WeekOrdinal
- Extension Methods
Fields
First = 1Represents the first occurrence of a specific weekday in the month (e.g., the 1st Monday).
Second = 2Represents the second occurrence of a specific weekday in the month (e.g., the 2nd Monday).
Third = 3Represents the third occurrence of a specific weekday in the month (e.g., the 3rd Monday).
Fourth = 4Represents the fourth occurrence of a specific weekday in the month (e.g., the 4th Monday).
Fifth = 5Represents the fifth occurrence of a specific weekday in the month (e.g., the 5th Monday).
important
This is relatively rare and only occurs in months where five instances of the specified weekday exist.
Last = 6Represents the last occurrence of a specific weekday in the month (e.g., the last Monday).
Applies to
| Product | Versions |
|---|---|
| .NET | 8, 10 |