Change Date Format
This is a pre-built action located under the @Generic element, instructs the Avo Assure to change the format of the given date to the format provided in input value column and save the results in the dynamic variable.
Syntax
Input Value: <date>;<current format>;<required format>
Supported date formats:
dd/MM/yyyy
MM/dd/yyyy
<date> (Required)
The actual date value you want to reformat
<current format> (Required)
The format in which the date is currently written.
<required format> (Required)
The format you want to convert the date into.
Output Value:
<Dynamic Variable>
This variable stores the converted date format
<Dynamic Variable> (Optional)
This variable stores the status as true or false
Example:
Convert a given date into a different format
The Change Date Format action takes the value from the Input Value column (e.g.,15/04/2025; dd/MM/yyyy;MM/dd/yyyy ) and converts the date from the current format (dd/MM/yyyy) to the required format (MM/dd/yyyy). The converted date is stored in the {Formatted Date} variable, and the status of the conversion is stored in the {Staus} variable with the following possible values:
True – if the format was successfully changed
False – if the conversion failed
Last updated
Was this helpful?