TimeUtils.GetLastDayOfMonth method

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

GetLastDayOfMonth(DateTime)

Static

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

public static DateTime GetLastDayOfMonth(DateTime date)

Parameters

date DateTime

The date.

Returns

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

GetLastDayOfMonth(DateTimeOffset)

Static

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

public static DateTimeOffset GetLastDayOfMonth(DateTimeOffset date)

Parameters

The date.

Returns

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