AGE( DATE )
Placeholder | Tooltip | Replace With |
DATE | d: Date | A date value, which you want to check against the current date. This can be a Date variable or a fixed date value. |
Returns a Number 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( Birth Date )
In the following conditional script, HotDocs determines whether the client is under the age of 18. If so, the Parent-Guardian Information dialog is asked. If the client is over the age of 18, no dialogs are asked.
IF AGE( Birth Date ) < 18
ASK Parent-Guardian Information
END IF