Click or drag to resize
DateTimeHelperGetValidTo Method
Calculate valid to date and time according to given parameters.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax
C#
public static DateTime GetValidTo(
	DateTime orignalValidTo,
	ValidityEnum unitsType,
	int units
)

Parameters

orignalValidTo
Type: SystemDateTime
Original valid to date and time
unitsType
Type: CMS.HelpersValidityEnum
Type of time units to add or subtract
units
Type: SystemInt32
Time units count

Return Value

Type: DateTime
See Also