Calculates the age, based on birth date.

Syntax

Smartsite SXML CopyCode image Copy Code
integer datetime.calculateage(datetime birthDate)
integer datetime.calculateage(datetime birthDate, datetime currentDate)

Parameters

Name Data Type Description
birthDate DateTime The birth date.
currentDate DateTime The date to get the age for.

Return Value

Data Type Description
Integer Integer

Expand image Example

SXML