TimeUtils.GetLastWeekdayOfMonth method
Namespace | Skybrud.Essentials.Time |
---|---|
Assembly | Skybrud.Essentials.dll |
GetLastWeekdayOfMonth(DateTime, DayOfWeek)
Gets the last day of the month that matches dayOfWeek
..
public static DateTime GetLastWeekdayOfMonth(DateTime date, DayOfWeek dayOfWeek)
GetLastWeekdayOfMonth(DateTimeOffset, DayOfWeek)
Gets the last day of the month that matches dayOfWeek
..
public static DateTimeOffset GetLastWeekdayOfMonth(DateTimeOffset date, DayOfWeek dayOfWeek)
Returns
An instance of DateTimeOffset representing the day.
GetLastWeekdayOfMonth(int, EssentialsDateMonthName, DayOfWeek)
Gets the last day of the month that matches dayOfWeek
..
public static DateTimeOffset GetLastWeekdayOfMonth(int year, EssentialsDateMonthName month, DayOfWeek dayOfWeek)
Parameters
year
int
The year.
month
EssentialsDateMonthName
The month.
dayOfWeek
DayOfWeek
The weekday to match.
Returns
An instance of DateTimeOffset representing the day.
GetLastWeekdayOfMonth(int, EssentialsDateMonthName, DayOfWeek, TimeSpan)
Gets the last day of the month that matches dayOfWeek
..
public static DateTimeOffset GetLastWeekdayOfMonth(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.
GetLastWeekdayOfMonth(int, int, DayOfWeek)
Gets the last day of the month that matches dayOfWeek
..
public static DateTime GetLastWeekdayOfMonth(int year, int month, DayOfWeek dayOfWeek)
GetLastWeekdayOfMonth(int, int, DayOfWeek, TimeSpan)
Gets the last day of the month that matches dayOfWeek
..
public static DateTimeOffset GetLastWeekdayOfMonth(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.