Date & Time Node

Parse, format, and manipulate dates. Some timezone identifiers may not be available.

Written By pvdyck

Last updated 17 minutes ago

Date & Time Node

The Date & Time node parses, formats, converts, and manipulates date and time values. Powered by the Luxon library.

Operations

OperationDescription
Add to a DateAdd a duration (e.g., 3 days, 2 hours) to a date value
Subtract From a DateSubtract a duration from a date value
Format a DateConvert a date to a specific string format (e.g., YYYY-MM-DD, DD/MM/YYYY HH:mm)
Round a DateRound a date to the nearest unit (e.g., start of day, start of hour)
Get Current DateReturn the current date and time
Extract Part of a DateGet a specific component (year, month, day, hour, minute, etc.)
Get Time Between DatesCalculate the duration between two dates

Common Parameters

ParameterDescription
DateThe input date value (field reference or expression)
DurationAmount and unit to add/subtract (e.g., 5 minutes, 2 days)
FormatOutput format string for formatting operations
Output Field NameField name for the result
TimezoneTarget timezone for conversion

Supported Date Formats

Accepts ISO 8601 (2024-01-15T10:30:00Z), Unix timestamps, and most common date string formats. Uses Luxon for parsing.

Limitations

  • Some timezone identifiers unavailable -- If you encounter a timezone error, use the UTC offset format (e.g., +05:30) instead of the IANA timezone name

Tips

  • Use "Get Current Date" to stamp items with processing time
  • Use "Get Time Between Dates" to calculate SLA compliance or elapsed time
  • Format dates before sending to external APIs that expect specific formats

Related