2 min read

Date & Time

Overview

The Date & Time node provides comprehensive date and time manipulation operations: current timestamp, formatting, parsing, date arithmetic, comparisons, period boundaries, business day calculations, timezone conversion, weekend/holiday detection, and relative time formatting.

Category

Utilsutils/dateTime

Operations

OperationDescription
nowCurrent timestamp
formatFormat a date using a pattern
parseParse a date string
diffCalculate the difference between two dates
add / subtractAdd or subtract time from a date
compareCompare two dates (before, after, same)
start_of / end_ofGet the start or end of a period (day, week, month, year)
business_daysCalculate business days between dates
timezoneConvert between timezones
is_weekend / is_holidayCheck if a date falls on a weekend or holiday
ageCalculate age from a birthdate
relativeFormat as relative time ("2 hours ago")
overlapCheck if two date ranges overlap

Inputs & Outputs