Date Addition

This is a pre-built Action located under the @Generic Element. The functionality of this Action in Avo Assure is to add a specified number of days to a given date. The execution status is then stored in a dynamic variable.

Syntax

Input Value: <date>;<number of days>;<current date format>

Argument
Description

<date> (Required)

Provide the starting date.

<number of days> (Required)

Provide the number of days to add to the starting date.

<current date format> (Required)

Provide the format of the starting date. Supported date formats:

  • dd/MM/yyyy

  • MM/dd/yyyy

  • dd/MMM/yyyy

  • MMM/dd/yyyy

Output Value: <Dynamic Variable>;<Dynamic Variable>(Optional)

Argument
Description

<Dynamic Variable> (Required)

This dynamic variable stores the updated date after adding the specified number of dates.

<Dynamic Variable> (Optional)

This dynamic variable stores the status as True or False.

Example: Adding Days to a Date

In this example, we explain how to add a specific number of days to a given date.

  • Action: Date Addition

  • Input Value: 15/04/2025;5;dd/MM/yyyy

    • The first argument (15/04/2025) specifies the original date.

    • The second argument (5) specifies the number of days to add.

    • The third argument (dd/MM/yyyy) specifies the current date format of the input date.

  • Output Value: {Updated Date}

    • The resulting date (20/04/2025) after adding the specified number of days is stored in this {Updated Date} dynamic variable.

    • If a second output variable is provided, then action returns the status as True or False:

      • True: If the date addition is successful.

      • False: If the operation fails due to an invalid date or format.

  • Logical Explanation: The Date Addition action fetches the value from the Input Value column (15/04/2025;5;dd/MM/yyyy), adds the specified number of days (5) to the input date, and stores the resulting date (20/04/2025) in the {Updated Date} variable.

Knowledge Bites:

Here are some examples of the different date formats:

Date formats
Input Value
Result

dd/MM/yyyy

15/04/2025;5;dd/MM/yyyy

20/04/2025

MM/dd/yyyy

04/15/2025;5;MM/dd/yyyy

04/20/2025

dd/MMM/yyyy

15/Apr/2025;5;dd/MMM/yyyy

20/Apr/2025

MMM/dd/yyyy

Apr/15/2025;5;MMM/dd/yyyy

Apr/20/2025

Last updated

Was this helpful?