Back to List
Placeholder | Replace With |
date | A date value, such as a Date variable |
date | A date value, such as a Date variable (These values can be in any order.) |
This expression calculates the number of years between two given dates.
In the following example, the years from expression finds the client’s age at the time of the hearing:
years from( HearingDate, BirthDate )
In this next example, the expression determines whether an employee has worked at the company for 25 years or more. If the employee has, HotDocs merges a paragraph into the document with details of a retirement party.
[if:yearsFrom( HireDate, RetirementDate ) >= 25:We would like to honor you at a retirement party on [PartyDate;da] at [PartyTime;te] at [PartyLocation;te].
]
Back to List