Click or drag to resize
TransformationHelperGetAge Method
Returns age according to DOB. If DOB is not set, returns unknownAge string.

Namespace: CMS.DocumentEngine.Web.UI
Assembly: CMS.DocumentEngine.Web.UI (in CMS.DocumentEngine.Web.UI.dll) Version: 11.0.0
Syntax
C#
public string GetAge(
	Object dateOfBirth,
	string unknownAge
)

Parameters

dateOfBirth
Type: SystemObject
Date of birth
unknownAge
Type: SystemString
Text which is returned when no DOB is given

Return Value

Type: String
See Also