Change Date Format
Last updated
Last updated
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:
1. dd/MM/yyyy
2. 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.
Input: Original Date: 22/10/2024 (dd/MM/yyyy)
Expected Output: It should be display as changed Date: 10/22/2024 (MM/dd/yyyy)
Output: The action performed and saves the changed date in {result} output variable as 10/22/2024.
Description and Usage: 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.
Syntax:
Input: <date>; <current format>; <required format>
Supported date formats:
1. dd/MM/yyyy
2. MM/dd/yyyy
Output: <Dynamic Variable> ;< Dynamic Variable> (Optional)
Use case/example:
Scenario: Display Date in Different Regional Formats 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.
Input:
Original Date: 22/10/2024 (dd/MM/yyyy)
Expected Output:
It should be display as changed Date: 10/22/2024 (MM/dd/yyyy)
Output: The action performed and saves the changed date in {result} output variable as 10/22/2024.