TransformationHelperGetAge Method |
Returns age according to DOB. If DOB is not set, returns unknownAge string.
Namespace: CMS.DocumentEngine.Web.UIAssembly: CMS.DocumentEngine.Web.UI (in CMS.DocumentEngine.Web.UI.dll) Version: 11.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