DateTimeExtensions..::..FirstDayOfTheMonth Method

Retrieves the first day of the month of the date.

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

Syntax


public static DateTime FirstDayOfTheMonth(
	DateTime date
)

Parameters

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

Return Value

A DateTime representing the first day of the month.