Sign In

Date and Time

Parse, format, add, subtract, compare, round, and extract parts from dates with full timezone support.

The Date and Time node performs date and time operations within a workflow. It supports eight operations ranging from getting the current time to computing differences between two dates. All operations are timezone-aware when a timezone is specified.

Configuration

FieldTypeRequiredDescription
OperationSelectNoThe date operation to perform. Defaults to Current Time.
Input DateText (variable)NoThe date value to operate on. Accepts ISO 8601 strings or template variables. Not shown for the Current Time operation.
TimezoneTimezone selectorNoTimezone for the operation. Uses the system default when left empty. Affects formatting, extraction, and display.

Operations and Their Fields

Current Time -- Returns the current date and time. No additional fields.

Format Date -- Converts a date to a custom string format.

FieldTypeDescription
Format StringTextPattern using tokens like YYYY-MM-DD HH:mm:ss. Leave empty for ISO 8601 output. Supported tokens: YYYY, YY, MM, M, DD, D, HH, H, hh, mm, ss, SSS, A, a.

Parse Date -- Parses a date string into a structured output. Takes only the Input Date field.

Add Duration / Subtract Duration -- Adds or subtracts a time duration from a date.

FieldTypeDescription
AmountNumberThe number of units to add or subtract.
UnitSelectThe time unit: Seconds, Minutes, Hours, Days, Weeks, Months, or Years. Months and years use calendar-aware arithmetic.

Date Difference -- Computes the difference between two dates.

FieldTypeDescription
Start DateText (variable)The first date (uses the Input Date field).
End DateText (variable)The second date.

The result is the difference in milliseconds. The output also includes an ISO 8601 duration string and a human-readable format.

Extract Part -- Extracts a specific component from a date. This operation is timezone-aware: when a timezone is set, parts are extracted in that timezone.

FieldTypeDescription
Part to ExtractSelectYear, Month, Day, Hour, Minute, Second, Weekday (0 is Sunday), Day of Year, or Week Number.

Round Date -- Rounds a date to a boundary.

FieldTypeDescription
Round ToSelectStart of Day, End of Day, Start of Week, End of Week, Start of Month, End of Month, Start of Year, or End of Year.

Output

FieldTypeDescription
resultstringThe primary result, typically an ISO 8601 string or a formatted date. For Date Difference, this is the difference in milliseconds as a string.
isostringThe date in ISO 8601 format. For Date Difference, this is an ISO 8601 duration (e.g., PT3600S).
unixnumberUnix timestamp in seconds. For Date Difference, this is the difference in seconds.
readablestringA human-readable representation, localized to the selected timezone.
partstringThe name of the extracted part (Extract Part operation only).
valuenumberThe numeric value of the extracted part (Extract Part operation only).

Example

A workflow that checks if a submitted date falls on a weekday:

  1. Form -- Collects a date field called appointmentDate.
  2. Date and Time -- Operation: Extract Part, Input: appointmentDate, Part: Weekday, Timezone: America/New_York.
  3. If/Else -- Condition: dateTime_1.value is greater than 0 AND dateTime_1.value is less than 6.
  4. Send Email (true branch) -- Confirm the appointment.
  5. Send Email (false branch) -- Ask the user to pick a weekday.

On this page

Date and Time | Buildorado