Steps
Your other fields disappear: turn on Include Input Fields
By default the node outputs only the new value. An item
{id, date}came out as just{"formattedDate":"10/24/2026"}, and Add to a Date returned onlynewDate. Open Options, Include Input Fields, and the original fields stay. This is the most common reason the next node says a field is undefined."Invalid date format": tell the node how the date is written
The node reads ISO dates (
2026-10-24,2026-10-24T09:30:00Z) and Unix timestamps. Everything else is a guess.24/10/2026,next Mondayand the email header dateFri, 24 Oct 2026 09:30:00 +0000all failed withInvalid date format. For Format a Date, set Options, From Date Format, for exampledd/MM/yyyy. For an email header date, convert it first in an expression, for example{{ DateTime.fromRFC2822($json.date).toISO() }}(Luxon; we did not run this one). The same error appeared when the Date field was in Fixed mode with{{ $json.date }}: switch the field to Expression.03/04 is read as March 4, silently
03/04/2026did not fail. It became2026-03-04, US order, with a green run. If your dates are day first, always set From Date Formatdd/MM/yyyy; then it became2026-04-03.Use Luxon tokens, not moment tokens
Format strings are Luxon and case-sensitive.
YYYY-MM-DDproducedYYYY-10-Oct 24, 2026, andyyyy-mm-ddput the minutes where the month should be:2026-30-24. Both runs were green. Useyyyy-MM-dd,dd/MM/yyyy,HH:mm(24 hours,mmis minutes,MMis month). Moment tokens in From Date Format (DD/MM/YYYY) failed withInvalid date format. For a Unix timestamp output useX(seconds, returned as a string) orx(milliseconds).Wrong hour or the day before: check the timezone
Format a Date prints UTC unless you turn on Use Workflow Timezone:
2026-10-24T09:30:00Zstayed09:30 +00:00, and became11:30 +02:00with the option on in a Europe/Paris workflow. Add, Subtract, Round, Extract and Get Current Date always use the workflow timezone, and with noGENERIC_TIMEZONEset that is America/New_York. That is why a date-only value like2026-10-24(midnight UTC) became2026-10-23 20:00 -04:00, and the Day of Month of2026-10-01came out as30. Set the timezone in the workflow settings (orGENERIC_TIMEZONEon self-hosted), or add a time likeT12:00:00to date-only values. Offsets behave unevenly:+02:00was kept,-05:00was converted to UTC (14:30 +00:00).Empty, missing and bad values
An empty string gave
01/01/1970with no error,nullgavenull, and a field that did not exist gave an empty item{}. Put an If or Filter node before the Date & Time node that checks the field is not empty. In the other direction, one bad value among many fails the whole node: 3 items withtbdin the middle gaveInvalid date formatand nothing passed. With On Error set to Continue (regular output), the bad item came out as{"error":"Invalid date format"}and lost its input fields, even with Include Input Fields on.Adding months, DST and timestamps
Adding 1 month to
2026-01-31clamped to 28 February (and, because of the New York default, 18:00 the evening before). Subtracting 24 hours across the end of daylight saving time landed at a different clock hour (2026-11-02T12:00minus 24 hours gave2026-11-01T07:00-05:00). Use days instead of hours if you want the same clock time. Unix timestamps were all understood: 10-digit seconds as number, string or decimal, and 13-digit milliseconds gave the same instant.Time between dates is an object, and timezones need full names
Get Time Between Dates returned an object,
{"days":1.5}, or{"days":1,"hours":12}with two units, and a negative number when the end was before the start. Use{{ $json.timeDifference.days }}, not{{ $json.timeDifference }}, or turn on Output as ISO String to getP1.5D. Timezone fields need IANA names:Parisfailed withThe timezone Paris is not valid. Please check the timezone.; useEurope/Paris. Week numbers are ISO weeks (2026-10-24 is week 43).
What we ran
On 24 October 2026 we ran 41 executions of the Date & Time node v2 on self-hosted n8n 2.43.7 with n8n execute: a Manual Trigger, a Code node with test dates, the Date & Time node and a Code node that recorded the output. 34 runs succeeded and 7 failed. GENERIC_TIMEZONE was not set, so the workflow timezone was the default America/New_York unless a run set Europe/Paris; the server clock was UTC. Every value below is copied from those runs.
| Setup | Result |
|---|---|
Format Date, default options, input {id, date} | Output only {"formattedDate":"10/24/2026"}: id and date gone |
| Same with Options, Include Input Fields | id, date and formattedDate kept |
24/10/2026 (day first), no From Date Format | Error: Invalid date format |
03/04/2026, no From Date Format | Green run, read as 4 March: 2026-03-04 |
03/04/2026, From Date Format dd/MM/yyyy | 2026-04-03 |
03/04/2026, From Date Format DD/MM/YYYY (moment tokens) | Error: Invalid date format |
next Monday | Error: Invalid date format |
Email header date Fri, 24 Oct 2026 09:30:00 +0000 | Error: Invalid date format |
Date field in Fixed mode with {{ $json.date }} | Error: Invalid date format |
Custom format YYYY-MM-DD | Green run, junk: YYYY-10-Oct 24, 2026 |
Custom format yyyy-mm-dd | Minutes in the month slot: 2026-30-24 |
Custom format X | Unix seconds as a string, "1792834200" |
Number 1761298200, string "1761298200", 1761298200.5 or ms 1761298200000 | All read as the same instant, 2025-10-24 09:30 +00:00 |
Empty string "" | Green run: 01/01/1970 |
null | formattedDate: null, no error |
| Expression on a field that doesn't exist | Output {}, no key, no error |
2026-10-24T09:30:00Z, Use Workflow Timezone off (default) | Printed in UTC: 09:30 +00:00 |
| Same, Use Workflow Timezone on, workflow Europe/Paris | 2026-10-24 11:30 +02:00 |
Date only 2026-10-24, workflow timezone off | 2026-10-24 00:00 +00:00 |
Date only 2026-10-24, Use Workflow Timezone on, America/New_York | 2026-10-23 20:00 -04:00: the day before |
2026-10-24T09:30:00+02:00 | Offset kept: 09:30 +02:00 |
2026-10-24T09:30:00-05:00 | Converted to UTC: 14:30 +00:00 |
Add 2 days to 2026-10-24T09:30:00Z, no timezone set | 2026-10-26T05:30:00.000-04:00 (America/New_York) |
| Same, workflow Europe/Paris | 2026-10-26T11:30:00.000+01:00 (DST ended in between) |
Duration from an expression string "2" | Works, same result as the number 2 |
Add 1 month to 2026-01-31 | 2026-02-28T18:00:00.000-05:00: clamped to 28 Feb, 18:00 the evening before |
Subtract 24 hours from 2026-11-02T12:00:00 (New York, across DST end) | 2026-11-01T07:00:00.000-05:00 |
| Round Down to day | 2026-10-24T00:00:00.000-04:00 |
| Get Current Date, Include Current Time off | Midnight in the workflow timezone, -04:00 |
Get Current Date, timezone Paris | Error: The timezone Paris is not valid. Please check the timezone. |
Extract Week Number of 2026-10-24 | 43 (ISO week) |
Extract Day of Month of 2026-10-01, New York | 30: the day before |
| Get Time Between Dates, 1.5 days, unit Day | An object: {"days":1.5} |
| Same, units Day and Hour | {"days":1,"hours":12} |
| Same, Output as ISO String | "P1.5D" |
| End before start | {"days":-1} |
3 items, middle one tbd | Whole node fails with Invalid date format, no item passes |
| Bad date, On Error Continue (regular output) | {"error":"Invalid date format"}; input fields dropped even with Include Input Fields on |
Quick checklist
- Fields missing after the node? Options, Include Input Fields.
Invalid date format? Set From Date Format in Luxon tokens, or convert in an expression first; check the field is in Expression mode.- Day and month swapped? Set From Date Format
dd/MM/yyyy. - Odd output like
YYYYor minutes as month? Useyyyy-MM-dd. - A day or a few hours off? Set the workflow timezone and turn on Use Workflow Timezone.
01/01/1970or{}? The value was empty or the field name is wrong.- Time difference shows
[object Object]? Read.days.
Good to know
- Sorting by date: n8n Sort node not sorting correctly.
- Dates in expressions and the
GENERIC_TIMEZONEsetting: n8n timezone and date wrong. Schedules firing at the wrong hour: n8n Schedule Trigger not working. - Comparing dates in a condition: n8n Filter node not working. Dates read from a CSV are text: n8n Extract From File (CSV). Undefined values in expressions: n8n expression errors.
- Every error message we reproduced is in the n8n error message index.
What we didn't test
- The editor UI itself (we ran workflows from JSON), n8n Cloud, the old v1 of the node, and servers whose clock is not UTC: how non-ISO strings are guessed can depend on the server timezone.
Start from a working agent
FAQ
Why does the n8n Date & Time node say "Invalid date format"?
The date is not ISO or a Unix timestamp, for example 24/10/2026 or an email header date, or the field is in Fixed mode. Set From Date Format with Luxon tokens such as dd/MM/yyyy, or convert the value in an expression first.
Why does the n8n Date & Time node remove my other fields?
By default it outputs only the new date. Turn on Options, Include Input Fields to keep the original fields.
How do I format a date as dd/MM/yyyy in n8n?
Choose Format a Date, Custom Format, and type dd/MM/yyyy. Tokens are Luxon and case-sensitive: MM is the month and mm is minutes, and YYYY or DD from moment do not work.
Why is my n8n date one day off?
A date without a time is midnight UTC, and the node shifts it into the workflow timezone, which defaults to America/New_York, the evening before. Set the workflow timezone, or add a midday time to date-only values.
Why does Format a Date ignore my timezone in n8n?
Format a Date prints UTC unless you turn on Use Workflow Timezone in its options. The other operations always use the workflow timezone.
Why do I get 01/01/1970 from the n8n Date & Time node?
The input was an empty string. Check the field name and filter out empty values before the node.
Related guides
- n8n timezone or date wrong? GENERIC_TIMEZONE, $now and Luxon, tested
- n8n Compression node not working: zip, unzip, file_0 and invalid zip data, 42 runs
- n8n Edit Fields (Set) node not working: dropped fields, type errors and invalid JSON, 29 runs
- n8n Sort node not sorting correctly: numbers, dates and nulls, 33 runs
- n8n Airtable node not working: Unauthorized, NOT_FOUND and Base ID fixes
New guides
- GitHub release notifications in Slack (any public repo, stable releases only)
- Send RSS feeds to Slack with a keyword filter (free, incoming webhook)
- Forward emails to a Slack channel (Gmail, Outlook, any IMAP), free with an incoming webhook
- n8n Google Sheets Trigger not working: not firing, activation errors and fixes