Add years
SYNTAX
<DateTime>.addYears(<Integer>)
<Date>.addYears(<Integer>)
DESCRIPTION
Adds the number of years in <Integer> to the number of years in the Date portion of <DateTime> or <Date>.
USAGE RESTRICTIONS
The Operators row of the table in
Summary Table of Vocabulary Usage Restriction applies. No special exceptions.
RULESHEET EXAMPLE
This sample Rulesheet uses .addYears in a Nonconditional rule to add 10 years to the value of dateOnly2 and assign the result to dateOnly1.
SAMPLE RULETEST
A sample Ruletest provides values of dateOnly2 for three instances of Entity1. Input and Output panels are shown below.