Read and Review Automation Anywhere Documentation

Automation 360

Close Contents

Contents

Open Contents

Datetime package

  • Updated: 6/03/2021
    • Automation 360 v.x
    • Build
    • RPA Workspace

Datetime package

A datetime value consists of a date, time, and time zone. RPA Workspace stores datetime values in a Datetime variable. The Datetime package contains actions that enable you to perform various operations on datetime values. You can use these actions to manipulate and compare values in the Datetime variables.

Actions in the Datetime package

The actions in the Datetime package accept a variable as an input and assign the output to a variable. These actions enable you to compare two Datetime values, add to or subtract from a Datetime value, and convert a Datetime value to a string value.

The Datetime package includes the following actions:

Action Description
Add See Using the Add action.
Assign See Using the Assign action.
Is after Compares two Datetime variables and verifies if the value of the source variable is after the value available in the comparison variable, and stores the output to a Boolean variable.
  • Select the source variable from the Source date and time variable list, and select the variable you want to compare with from the Date and time variable to be compared to list.
  • Select the Datetime variable from the Assign the output to a variable list to specify the variable you want to use to assign the output.

    For example, if the value in the source variable is after the value in the comparison variable, the system stores True as the output in the Boolean variable. If the value in the source variable is not after the value in the comparison variable, the system stores False as the output in the Boolean variable.

Is before Compares two Datetime variables and verifies if the value of source variable is before the value available in the comparison variable, and stores the output to a Boolean variable.
  • Select the source variable from the Source date and time variable list, and select the variable you want to compare with from the Date and time variable to be compared to list.
  • Select the Datetime variable from the Assign the output to a variable list to specify the variable you want to use to assign the output.

    For example, if the value in the source variable is before the value in the comparison variable, the system stores True as the output in the Boolean variable. If the value in the source variable is not before the value in the comparison variable, the system stores False as the output in the Boolean variable.

Is equal Compares two Datetime variables and verifies if the value of the source variable is equal to the value available in the comparison variable, and stores the output to a Boolean variable.
  • Select the source variable from the Source date and time variable list, and select the variable you want to compare with from the Date and time variable to be compared to list.
  • Select the Datetime variable from the Assign the output to a variable list to specify the variable you want to use to assign the output.

    For example, if the value in the source variable is equal to the value in the comparison variable, the system stores True as the output in the Boolean variable. If the value in the source variable is not equal to the value in the comparison variable, the system stores False as the output in the Boolean variable.

Subtract See Using the Subtract action.
To string See Using the To string action.
Send Feedback