CMSAbstractTransformationGetAge 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: 12.0.0
Syntaxpublic 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