Table of Contents

WeekOrdinal Enum

Definition

Namespace
Bodu.Extensions
Assembly
Bodu.Core.dll
Package
Bodu.Core 1.0.1
Source
WeekOrdinal.cs

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 = 1

Represents the first occurrence of a specific weekday in the month (e.g., the 1st Monday).

Second = 2

Represents the second occurrence of a specific weekday in the month (e.g., the 2nd Monday).

Third = 3

Represents the third occurrence of a specific weekday in the month (e.g., the 3rd Monday).

Fourth = 4

Represents the fourth occurrence of a specific weekday in the month (e.g., the 4th Monday).

Fifth = 5

Represents 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 = 6

Represents the last occurrence of a specific weekday in the month (e.g., the last Monday).

Applies to

ProductVersions
.NET8, 10