Change Date Format
Last updated
Was this helpful?
Last updated
Was this helpful?
This is a pre-built action in Avo Assure which is Located under the @Generic element category. It instructs the Avo Assure Client to change the format of the given date to the format provided in input value and save the results in the output variable.
Input: <date>; <current format>; <required format>
Supported date formats:
dd/MM/yyyy
MM/dd/yyyy
Output: <Dynamic Variable> ;< Dynamic Variable> (Optional)
Consider a scenario where a global e-commerce platform needs to display order dates to users based on their regional date format preferences (e.g., MM/DD/YYYY for the United States, DD/MM/YYYY for the United Kingdom, and YYYY-MM-DD for Japan). These scenarios cover a range of applications for changing date formats, from user preferences in display settings to importing and exporting data.
Original Date: 22/10/2024 (dd/MM/yyyy)
It should be display as changed Date: 10/22/2024 (MM/dd/yyyy)
The action performed and saves the changed date in {result} output variable as 10/22/2024.