TimeUtils.GetFirstWeekdayOfMonth method
Version 1.1.28
.NET Framework 4.8
Namespace | Skybrud.Essentials.Time |
---|---|
Assembly | Skybrud.Essentials.dll |
GetFirstWeekdayOfMonth(DateTime, DayOfWeek)
Static
Gets the first day of the month that matches dayOfWeek
.
public static DateTime GetFirstWeekdayOfMonth(DateTime date, DayOfWeek dayOfWeek)
GetFirstWeekdayOfMonth(DateTimeOffset, DayOfWeek)
Static
Gets the first day of the month that matches dayOfWeek
..
public static DateTimeOffset GetFirstWeekdayOfMonth(DateTimeOffset date, DayOfWeek dayOfWeek)
Returns
An instance of DateTimeOffset representing the day.
GetFirstWeekdayOfMonth(int, EssentialsDateMonthName, DayOfWeek)
Static
Gets the first day of the month that matches dayOfWeek
..
public static DateTime GetFirstWeekdayOfMonth(int year, EssentialsDateMonthName month, DayOfWeek dayOfWeek)
Parameters
year
int
The year.
month
EssentialsDateMonthName
The month.
dayOfWeek
DayOfWeek
The weekday to match.
GetFirstWeekdayOfMonth(int, EssentialsDateMonthName, DayOfWeek, TimeSpan)
Static
Gets the first day of the month that matches dayOfWeek
..
public static DateTimeOffset GetFirstWeekdayOfMonth(int year, EssentialsDateMonthName month, DayOfWeek dayOfWeek, TimeSpan offset)
Parameters
year
int
The year.
month
EssentialsDateMonthName
The month.
dayOfWeek
DayOfWeek
The weekday to match.
offset
TimeSpan
The time's offset from Coordinated Universal Time (UTC).
Returns
An instance of DateTimeOffset representing the day.
GetFirstWeekdayOfMonth(int, int, DayOfWeek)
Static
Gets the first day of the month that matches dayOfWeek
..
public static DateTime GetFirstWeekdayOfMonth(int year, int month, DayOfWeek dayOfWeek)
GetFirstWeekdayOfMonth(int, int, DayOfWeek, TimeSpan)
Static
Gets the first day of the month that matches dayOfWeek
..
public static DateTimeOffset GetFirstWeekdayOfMonth(int year, int month, DayOfWeek dayOfWeek, TimeSpan offset)
Parameters
year
int
The year.
month
int
The month.
dayOfWeek
DayOfWeek
The weekday to match.
offset
TimeSpan
The time's offset from Coordinated Universal Time (UTC).
Returns
An instance of DateTimeOffset representing the day.