OrdinalWeekday Enumeration

Represents the ordinal occurrence of a given weekday in a month.

Definition

Namespace: InnerDrive.Core
Assembly: InnerDrive.Core (in InnerDrive.Core.dll) Version: 5.2.9017.0
C#
public enum OrdinalWeekday

Remarks

For example, Third represents the third occurrence of a particular weekday in a month.

Example

The following code determines the date when the United States Supreme Court meets for the first time in this year's term:
C#
DateTime supremeCourtMeets = DateTimeExtensions.OrdinalDate(
     OrdinalWeekday.First,
     DayOfWeek.Monday,
     10,
     DateTime.Now.Year
  );

Members

Exact0 Represents an exact date; that is, the ordinal feature should not be used and any accompanying data should indicate the day of the month.
First1Represents the first occurrence of a particular weekday in a month.
Second2Represents the second occurrence of a particular weekday in a month.
Third3Represents the third occurrence of a particular weekday in a month.
Fourth4Represents the fourth occurrence of a particular weekday in a month.
Last5Represents the last occurrence of a particular weekday in a month. The last occurrence might be either the fourth or fifth occurrence.

See Also