Series 01 Episode 09 🚀 n8n Knowledge for Beginners 🚀

Minimal illustration of a calendar and a clock connected in a workflow

Your workflow needs to send a reminder in 7 days or write today's date to a spreadsheet. Typing the date by hand? A week later it's out of date. In n8n you calculate the date with an expression.

Four things to get right:

  1. Now and today: {{ $now }} is the current moment including the time, and {{ $today }} is today's date at midnight.
  2. Formatting: {{ $now.toFormat('yyyy-MM-dd') }} gives e.g. 2026-11-11. You write the pattern yourself, e.g. 'dd.MM.yyyy HH:mm'.
  3. Adding and subtracting: {{ $now.plus({ days: 7 }) }} is a week from now, {{ $now.minus({ hours: 2 }) }} is two hours ago.
  4. Time zone: in the workflow settings (Settings) you pick a Timezone. It determines what $now shows and when a Schedule Trigger starts.

Watch out for:

  • Letter case in the pattern matters: MM is month, mm is minutes. A typo gives you minutes where a month should be.
  • A date from an API often arrives as text. Before you calculate a difference or add days, turn it into a date: {{ DateTime.fromISO($json.createdAt) }}.
  • Your instance's time zone and yours may differ, so the time in an email can be off by 1–2 hours. Check Timezone in the workflow settings.

Rule of thumb: always calculate the date with an expression instead of typing it, and set the workflow time zone up front.

Upcoming meetups and workshops are listed in the Events section.

← Back to the knowledge baseShare on LinkedIn (opens in a new tab)