Date and Time Formatting
Date and Time Formatting
Converts a date from an input format to a defined output format. Essential for standardizing dates coming from different sources — such as systems that use the American format (MM/DD/YYYY) when the destination expects the Brazilian format (DD/MM/YYYY), or vice versa.
Options
Input Format
Select the format in which the input date is written. The format selected must match exactly the date that will be provided in the next field.
Use a date relative to the robot execution?
Defines whether the date will be obtained automatically based on the moment the robot is being executed. Select Yes to use the current date and skip the manual date field, or No to provide a specific date.
Date to be formatted
Enter the date that will be converted. This field is only shown when the Use a relative date option is set to No.
Output Format
Select the format in which the date must be returned after the conversion.
Returns
Custom code
actions["action-id"].value // date converted to the selected output format (Text)
Field selection
- value — date formatted in the selected output format (Text)
Rules and Conditions
- The Input Format and Output Format fields are required.
- When Use a relative date is No, the Date field is also required.
- The date provided must match exactly the input format selected.
- When Use a relative date is Yes, the date is captured automatically at execution time.