TimeUtils.GetStartOfWeek method

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

GetStartOfWeek(DateTimeOffset)

Static
public static DateTimeOffset GetStartOfWeek(DateTimeOffset time)

Parameters

Returns

GetStartOfWeek(DateTimeOffset, DayOfWeek)

Static
public static DateTimeOffset GetStartOfWeek(DateTimeOffset time, DayOfWeek startOfWeek)

Parameters

startOfWeek DayOfWeek

Returns

GetStartOfWeek(DateTimeOffset, TimeZoneInfo)

Static
public static DateTimeOffset GetStartOfWeek(DateTimeOffset time, TimeZoneInfo timeZone)

Parameters

timeZone TimeZoneInfo

Returns

GetStartOfWeek(DateTimeOffset, TimeZoneInfo, DayOfWeek)

Static
public static DateTimeOffset GetStartOfWeek(DateTimeOffset time, TimeZoneInfo timeZone, DayOfWeek startOfWeek)

Parameters

timeZone TimeZoneInfo
startOfWeek DayOfWeek

Returns