Skip to main content
Roberty Studio
RPADate and time

Format Date

Format Date

Converts a date from an input format to a defined output format. Essential for standardizing dates when moving between systems with different conventions — such as converting from the American format to the Brazilian format or to the ISO standard, without having to write code.


Options​

Use a date relative to the robot's execution?​

Defines whether the date used will be the current date at the moment the robot is running. Select Yes to use the current date automatically, or No to provide a specific date.

Input format date​

Select the format in which the input date is written: Traditional (31/12/2024), In full (31 de dezembro de 2024) or International (2024-12-31). This field is only shown when Use a date relative to the robot's execution? is set to No.

Date to be formatted​

Enter the date that will be formatted. This field is only shown when Use a date relative to the robot's execution? is set to No.

Output format​

Select the format in which the date must be returned after the conversion: Traditional (31/12/2024), In full (31 de dezembro de 2024) or International (2024-12-31).

Output language​

Choose the language of the output date — Brazil Portuguese or English. For example, Brazil Portuguese produces an output such as 17 de abril de 2026.

Returns​

Javascript code​

js
actions["action-id"].value // date converted to the output format selected (Text)

Field selection​

  • value — date formatted in the output format chosen (Text)

Rules and Conditions​

  • When Use a date relative to the robot's execution? is No, the date provided must exactly match the format selected in Input format date.
  • If no output format is chosen, the date is returned in the Traditional format (31/12/2024).