HotDocs Models: age( date )

Placeholder Replace With
date A date value, which you want to check against the current date. This can be a Date variable or a fixed date value.

The age( date ) expression produces an age, in years, by calculating the number of years between the current date (as determined by your computer’s system clock) and a date you provide in the computation script.

For example, the following script determines the age of the user based on his or her birth date:

age( BirthDate )

In the following conditional script, HotDocs determines whether the client is under the age of 18. If so, the ParentGuardianInformation dialog is asked. If the client is over the age of 18, no dialogs are asked.

if age( BirthDate ) < 18

ask ParentGuardianInformation

endIf