Click or drag to resize
DateTimeHelperGetFormattedValidity Method
Returns validity as formatted string.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 9.0.0
Syntax
C#
public static string GetFormattedValidity(
	ValidityEnum validity,
	int validFor,
	DateTime validUntil
)

Parameters

validity
Type: CMS.HelpersValidityEnum
Validity type
validFor
Type: SystemInt32
Multiplier for time period set by validity type
validUntil
Type: SystemDateTime
Valid until date and time

Return Value

Type: String
See Also