Get Current Date

This pre-built action located under @Generic Element, instructs the Avo Assure to fetches the current date from the system based on the format specified by the user in the Input Value and stores the date in dynamic variable.

Syntax

Input Value: <format of date>

Argument
Description

<format of date > (Required)

Accepted input formats: 1. dd/MMM/yyyy  2. MMM/dd/yyyy  3. dd/MM/yyyy  4. MM/dd/yyyy 

Output Value:

Argument
Description

<Dynamic Variable> (Required)

This variable stores the formatted dates

<Dynamic Variable> (Optional)

This variable stores the status as true or false

Example: Retrieve the current date dd/MMM/yyyy  format.

The Get Current Date action takes the format (dd/MMM/yyyy) as input in the Input Value column and retrieves the current system date in the same format (dd/MMM/yyyy). The formatted result is stored in the {Current Date} variable, while the status of the action is saved in the {Status} variable, with the following possible values:

  • True – if the date is retrieved and formatted successfully

  • False – if the action fails or the format is invalid

Date formats
Input Value (syntax)
Result

dd/MM/yyyy

dd/MM/yyyy

15/04/2025

MM/dd/yyyy

MM/dd/yyyy

04/15/2025

dd/MMM/yyyy

dd/MMM/yyyy

15/Apr/2025

MMM/dd/yyyy

MMM/dd/yyyy

Apr/15/2025

Last updated

Was this helpful?