Year Addition
Last updated
Was this helpful?
Last updated
Was this helpful?
This pre-built action, found under the @Generic element, instructs Avo Assure to add a specified number of years to a given date format store the result in a dynamic variable.
Input Value: <date>; <number of Years>; <current date format>
Supported date formats:
dd/MM/yyyy
MM/dd/yyyy
MMM/dd/yyyy
dd/MMM/yyyy
<date> (Required)
Represents the base date from which years will be added.
<number of Years> (Required)
Specifies how many years to add from the given date.
<current date format> (Required)
The format in which the input date is provided
Output Value:
<Dynamic Variable> (Required)
This variable stores the updated years
<Dynamic Variable> (Optional)
This variable stores the status as true or false
Example
Add yeas to a given date in a specific format The Year Addition action takes the value from the Input Value column (e.g., 15/03/2025;2;dd/MM/yyyy) and adds the specified number of years (2) to the given date (15/03/2025) based on the current date format (dd/MM/yyyy). The resulting date is stored in the {Updated Date} variable, and the action status is saved in the {Status} variable with the following possible values: True – if the date was successfully updated False – if the action failed
knowledge Bites: Below are some examples of different dates formatted scenarios
dd/MM/yyyy
15/04/2025;5;dd/MM/yyyy
15/04/2030
MM/dd/yyyy
04/15/2025;2;MM/dd/yyyy
04/15/2027
dd/MMM/yyyy
15/Apr/2025;1;dd/MMM/yyyy
15/Apr/2026
MMM/dd/yyyy
Apr/15/2025;6;MMM/dd/yyyy
Apr/15/2031