Date and Time Data Type Variables
You can now handle dates and times using data types.
Date and Time Data Types Format
You can now handle date and time using three data types:
-
Date
-
Time
-
DateTime
The representations of these data types are based on the ISO 8601 standard. According to this standard,
format.
-
A date is written in the 2018-11-13 format.
-
A time is written in the 20:20:39+00:00 format.
-
A date and a time are written in the 2108-11-13T20:39+00:00 format.
format.
Set Input Parameters in Picker Panels
When you define an input parameter which is expecting a date or a time, a picker panel appears and you can select dates and/or times. This picker panel appears in three cases:
Click the icons to open the corresponding picker panels:
-
When you want to test your automation.
-
When you want to provide environment variables.
-
When you want to input parameters from triggers.
Manipulate a Date in JavaScript
If you want to manipulate a date with all the APIs available in JavaScript, you must convert this date into a JavaScript one:
-
Using a Custom Script.
You can do the conversion with: new Date(myDate)
-
Using the Expression Editor and entering new Date(myDate) .
For more information, see Dates.