TransformationHelperGetAge Method |
Returns age according to DOB. If DOB is not set, returns unknownAge string.
Namespace: CMS.ControlsAssembly: CMS.Controls (in CMS.Controls.dll) Version: 9.0.0
Syntax 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:
StringSee Also