DateHelperGetPreviousDate Method

Return the Previous date from the specified reference and day of month.

Definition

Namespace: Html
Assembly: Html (in Html.dll) Version: 25.2822.3845
C#
public static DateTime GetPreviousDate(
	DateTime baseDate,
	int day
)

Parameters

baseDate  DateTime
Date from which to find the Previous month day.
day  Int32
Day of month of the Previous date to find.

Return Value

DateTime
Previous date representing the specified day of month, from the reference provided by the caller.

See Also