DateTimeOffsetExtensions.GetFirstDayOfMonth method

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

GetFirstDayOfMonth(DateTimeOffset)

Extension method

Gets the first day of the month of the specified date.

public static DateTimeOffset GetFirstDayOfMonth(this DateTimeOffset date)

Parameters

An instance of DateTimeOffset representing the date.

Returns

An instance of DateTimeOffset representing the first day of the month.