DateTimeExtensions..::..GetLastDayOfMonth Method

Gets the last day of month. Gets the last date of the month of the DateTime. DateTime lastDay = DateTime.Now.GetLastDayOfMonth();

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

Syntax


public static DateTime GetLastDayOfMonth(
	DateTime dateTime
)

Parameters

dateTime
Type: DateTime
The date time.

Return Value

returns DateTime