Skip to content
masterclass Buddy

n8n · Expression

$today

Use $today and Luxon DateTime methods to calculate, compare, parse, and format dates in n8n expressions. Dates passed between nodes are strings, so parse them before date arithmetic.

Last updated

Syntax

$today; DateTime.fromISO(value); DateTime.fromFormat(value, format)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • $now
  • DateTime.fromISO()
  • DateTime.fromFormat()
  • toFormat()
  • toLocaleString()
  • plus()
  • minus()
  • diff()

Source: Work with dates and times | Build | n8n Docs. Checked 2026-11-03.