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

Namespace: CMS.Controls
Assembly: CMS.Controls (in CMS.Controls.dll) Version: 8.2.23
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