Back to List
Placeholder | Replace With |
date | A date value, such as a Date variable |
You can use this expression model to find the year portion of a given date.
For example, in the following script, a new employee has temporary status until the end of his or her third month with the company. HotDocs uses the year of expression to specify the year:
dateOf( 1, monthOf( HireDate + 3 months), yearOf( HireDate + 3 months) ) - 1 days
In this example, HotDocs finds the first day of the fourth month of employment. HotDocs then subtracts one day to reveal the last day of the third month—either the 28th, 29th, 30th or 31st—depending on the month. It then merges the new date into the document.
Back to List