DAYS FROM( DATE, DATE )
Placeholder | Tooltip | Replace With |
DATE | start: Date | A date value, such as a Date variable |
DATE | finish: Date | A date value, such as a Date variable. (These can be in any order.) |
Returns a Number value
This expression allows you to find the number of days between two dates.
In the following example, a buyer has 60 days to make a payment on an account balance. If the buyer has miss ed the payment deadline, HotDocs merges a warning into the document:
IF DAYS FROM( Purchase Date, TODAY ) > 60
"Your account is past due."
ELSE
"Your account is current. Thank you."
END IF
This example uses an IF/ELSE IF expression to determine the text that must be inserted.