EssentialsDateTime.GetFirstDayOfWeek method

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

GetFirstDayOfWeek()

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

public EssentialsDateTime GetFirstDayOfWeek()

Returns

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

GetFirstDayOfWeek(DayOfWeek)

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

public EssentialsDateTime GetFirstDayOfWeek(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 first day of the week.