Definition and Usage
This command retrieves the current date and time from the system. It allows the workflow to access the current timestamp for various time-based operations and calculations.
Parameter Values
Input parameters
This action does not require any input parameters.
Error handling
Parameter Name | Description |
Throw error & stop | When an error occurs, the action will trigger an error and stop the execution of the entire app. |
Retry command | If an error occurs, the action will retry the command in an attempt to resolve the issue and continue the process. |
Ignore error & continue | When an error occurs, the action will be ignored, and the workflow will continue without interruption. |
Variables produced
This command creates a variable that stores the current date and time. The output is typically in a datetime format that can be used for timestamp comparisons, date calculations, or logging purposes.
Using Variables in Conditions
The output variable containing the current date and time can be used in subsequent actions by referencing it with the variable icon or using the {variableName} syntax. This is particularly useful for:
Date/time comparisons in conditional statements
Calculating time differences
Creating timestamped logs or filenames
Setting deadlines or timeouts
When using the datetime variable, ensure that any comparison operations are compatible with datetime format.
Notes
The format of the retrieved date and time will follow the system's default format
The time retrieved will be based on the local time zone of the system running the RPA workflow
This command is particularly useful for logging operations, creating unique identifiers, or implementing time-based logic in your automation