TimeUtils.GetFirstDayOfMonth method

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

GetFirstDayOfMonth(DateTime)

Static

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

public static DateTime GetFirstDayOfMonth(DateTime date)

Parameters

date DateTime

The date.

Returns

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

GetFirstDayOfMonth(DateTimeOffset)

Static

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

public static DateTimeOffset GetFirstDayOfMonth(DateTimeOffset date)

Parameters

The date.

Returns

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