Compare Date

This is a pre-built Action located under the @Generic Element. The functionality of this Action in Avo Assure is to compare two given dates that follow the same format. The comparison result stores in a dynamic variable.

Syntax

Input Value: <date1>;<date2>;<date1 format>

Argument
Description

<date1> (Required)

Provide the first date for comparison.

<date2> (Required)

Provide the second date for comparison.

<date1 format> (Required)

Provide the format of the first date.

Supported date formats are:

  • dd/MM/yyyy

  • MM/dd/yyyy

  • dd/MMM/yyyy

  • MMM/dd/yyyy

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

Argument
Description

<Dynamic Variable>(Required);< Dynamic Variable>(Optional)

Both dynamic variables store the status as True or False.

Example: Comparing Dates

In this example, we explain how to compare two given dates to determine if a particular date.

  • Action: Compare Date

  • Input Value: 11/12/2025;11/12/2025;dd/MM/yyyy

    • The first argument (11/12/2025) specifies the current date.

    • The second argument (11/12/2025) specifies the date to compare against.

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

  • Output Value: {Status}

    • The execution status (True) is stored in this {Status} dynamic variable with the following possible values:

      • True: If the comparison is successful.

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

Logical Explanation: The Compare Dates action fetches the value from the Input Value column (11/12/2025;11/12/2025;dd/MM/yyyy), compares the two dates, and stores the outcome in the {Status} variable as (True).

Knowledge Bites:

Here are some examples of the different date formats:

Date formats
Input Value
Result

dd/MM/yyyy

08/11/2025;10/11/2025;dd/MM/yyyy

False

MM/dd/yyyy

11/05/2025;11/06/2025;MM/dd/yyyy

False

dd/MMM/yyyy

11/Nov/2025;11/Nov/2025;dd/MMM/yyyy

True

MMM/dd/yyyy

Nov/11/2025;Nov/11/2025;MMM/dd/yyyy

True

Last updated

Was this helpful?