EssentialsDateTime.GetLastDayOfWeek method

Version 1.1.28
.NET Framework 4.8
Namespace Skybrud.Essentials.Time
Assembly Skybrud.Essentials.dll

GetLastDayOfWeek()

Gets the last day of the week based on this EssentialsDateTime. Monday is considered the first day of the week.

public EssentialsDateTime GetLastDayOfWeek()

Returns

An instance of EssentialsDateTime representing the last day of the week.

GetLastDayOfWeek(DayOfWeek)

Gets the last day of the week based on this EssentialsDateTime and startOfWeek.

public EssentialsDateTime GetLastDayOfWeek(DayOfWeek startOfWeek)

Parameters

startOfWeek DayOfWeek

The first day of the week (eg. System.DayOfWeek.Monday or System.DayOfWeek.Sunday).

Returns

An instance of EssentialsDateTime representing the last day of the week.

GetLastDayOfWeek(DateTime, DayOfWeek)

Gets the last day of the week based on this EssentialsDateTime and startOfWeek.

public EssentialsDateTime GetLastDayOfWeek(DateTime date, DayOfWeek startOfWeek)

Parameters

date DateTime

The date.

startOfWeek DayOfWeek

The first day of the week (eg. System.DayOfWeek.Monday or System.DayOfWeek.Sunday).

Returns

An instance of EssentialsDateTime representing the last day of the week.