DateTimeExtensions..::..LastDayOfTheMonth Method

Retrieves the last day of the month of the date.

Namespace:  Core
Assembly:  Core (in Core.dll)

Syntax


public static DateTime LastDayOfTheMonth(
	DateTime date
)

Parameters

date
Type: DateTime
A date from the month we want to get the last day.

Return Value

A DateTime representing the last day of the month.