OrdinalWeekday Enumeration
Represents the ordinal occurrence of a given weekday in a month.
Namespace: InnerDrive.CoreAssembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.2.9017.0
public enum OrdinalWeekday
For example, Third represents the
third occurrence of a particular weekday in a month.
The following code determines the date when the United States Supreme
Court meets for the first time in this year's term:
DateTime supremeCourtMeets = DateTimeExtensions.OrdinalDate(
OrdinalWeekday.First,
DayOfWeek.Monday,
10,
DateTime.Now.Year
);
Exact | 0 |
Represents an exact date; that is, the ordinal feature should
not be used and any accompanying data should indicate the day of the month.
|
First | 1 | Represents the first occurrence of a particular weekday in a month. |
Second | 2 | Represents the second occurrence of a particular weekday in a month. |
Third | 3 | Represents the third occurrence of a particular weekday in a month. |
Fourth | 4 | Represents the fourth occurrence of a particular weekday in a month. |
Last | 5 | Represents the last occurrence of a particular weekday in a month.
The last occurrence might be either the fourth or fifth occurrence. |