Skip to content

Date Time ​

Generates the current date and time, with optional adjustment and string formatting.

Purpose ​

Use this task to produce a timestamp for use in downstream workflow steps such as logging, scheduling, file naming, or API calls. The time zone can be set to local or UTC. An optional adjustment shifts the result by a specified number of time units. If a format string is provided, a formatted string representation is also produced alongside the raw date-time value.

Inputs ​

FieldTypeRequiredDescription
Time ZoneDropdownNoWhether to use the server's local time or UTC. Options: Local, UTC. Defaults to Local.
Adjust Now DateDropdownNoThe unit of time to add to the current date and time. Options: Add Years, Add Months, Add Days, Add Hours, Add Minutes, Add Seconds, Add Milliseconds.
Number to Adjust byTextNoThe number of units to add. Use a negative value to subtract. Defaults to 0.
String Formatted DateTextNoA .NET format string used to produce a formatted date string. For example yyyy-MM-dd, o for ISO 8601, or r for RFC 1123. Defaults to yyyy-MM-ddTHH:mm:ss.

Outputs ​

NameDescription
DateTimeObjectThe calculated date and time value, with any adjustment applied.
StringFormattedDateThe date formatted using the provided format string. Only produced when a non-empty format string is supplied.

Examples ​

Add days to the current date and format as a date string
FieldValue
Time ZoneLocal
Adjust Now DateAdd Days
Number to Adjust by7
String Formatted Dateyyyy-MM-dd

Output: DateTimeObject contains the date-time seven days from now. StringFormattedDate contains a string such as "2026-03-22".

Get the current UTC time with no adjustment
FieldValue
Time ZoneUTC
String Formatted Dateo

Output: DateTimeObject contains the current UTC date and time. StringFormattedDate contains an ISO 8601 string such as "2026-03-15T02:30:00.0000000Z".

Tentech