// guides · n8n error index

n8n Date & Time node not working: Invalid date format, wrong day and lost fields, 41 runs

Fix the n8n Date & Time node: "Invalid date format" on 24/10/2026 or email dates, 03/04 read as March, junk custom formats, dates a day off, UTC instead of your timezone, and input fields that disappear. 41 real runs on n8n 2.43.7.

Updated 2026-10-24 · about 10 minutes

Still stuck after these steps? Paste your exact n8n error and we'll reproduce it and email you the fix, free →

Steps

  1. 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 only newDate. Open Options, Include Input Fields, and the original fields stay. This is the most common reason the next node says a field is undefined.

  2. "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 Monday and the email header date Fri, 24 Oct 2026 09:30:00 +0000 all failed with Invalid date format. For Format a Date, set Options, From Date Format, for example dd/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.

  3. 03/04 is read as March 4, silently

    03/04/2026 did not fail. It became 2026-03-04, US order, with a green run. If your dates are day first, always set From Date Format dd/MM/yyyy; then it became 2026-04-03.

  4. Use Luxon tokens, not moment tokens

    Format strings are Luxon and case-sensitive. YYYY-MM-DD produced YYYY-10-Oct 24, 2026, and yyyy-mm-dd put the minutes where the month should be: 2026-30-24. Both runs were green. Use yyyy-MM-dd, dd/MM/yyyy, HH:mm (24 hours, mm is minutes, MM is month). Moment tokens in From Date Format (DD/MM/YYYY) failed with Invalid date format. For a Unix timestamp output use X (seconds, returned as a string) or x (milliseconds).

  5. 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:00Z stayed 09:30 +00:00, and became 11:30 +02:00 with the option on in a Europe/Paris workflow. Add, Subtract, Round, Extract and Get Current Date always use the workflow timezone, and with no GENERIC_TIMEZONE set that is America/New_York. That is why a date-only value like 2026-10-24 (midnight UTC) became 2026-10-23 20:00 -04:00, and the Day of Month of 2026-10-01 came out as 30. Set the timezone in the workflow settings (or GENERIC_TIMEZONE on self-hosted), or add a time like T12:00:00 to date-only values. Offsets behave unevenly: +02:00 was kept, -05:00 was converted to UTC (14:30 +00:00).

  6. Empty, missing and bad values

    An empty string gave 01/01/1970 with no error, null gave null, 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 with tbd in the middle gave Invalid date format and 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.

  7. Adding months, DST and timestamps

    Adding 1 month to 2026-01-31 clamped 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:00 minus 24 hours gave 2026-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.

  8. 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 get P1.5D. Timezone fields need IANA names: Paris failed with The timezone Paris is not valid. Please check the timezone.; use Europe/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.

SetupResult
Format Date, default options, input {id, date}Output only {"formattedDate":"10/24/2026"}: id and date gone
Same with Options, Include Input Fieldsid, date and formattedDate kept
24/10/2026 (day first), no From Date FormatError: Invalid date format
03/04/2026, no From Date FormatGreen run, read as 4 March: 2026-03-04
03/04/2026, From Date Format dd/MM/yyyy2026-04-03
03/04/2026, From Date Format DD/MM/YYYY (moment tokens)Error: Invalid date format
next MondayError: Invalid date format
Email header date Fri, 24 Oct 2026 09:30:00 +0000Error: Invalid date format
Date field in Fixed mode with {{ $json.date }}Error: Invalid date format
Custom format YYYY-MM-DDGreen run, junk: YYYY-10-Oct 24, 2026
Custom format yyyy-mm-ddMinutes in the month slot: 2026-30-24
Custom format XUnix seconds as a string, "1792834200"
Number 1761298200, string "1761298200", 1761298200.5 or ms 1761298200000All read as the same instant, 2025-10-24 09:30 +00:00
Empty string ""Green run: 01/01/1970
nullformattedDate: null, no error
Expression on a field that doesn't existOutput {}, 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/Paris2026-10-24 11:30 +02:00
Date only 2026-10-24, workflow timezone off2026-10-24 00:00 +00:00
Date only 2026-10-24, Use Workflow Timezone on, America/New_York2026-10-23 20:00 -04:00: the day before
2026-10-24T09:30:00+02:00Offset kept: 09:30 +02:00
2026-10-24T09:30:00-05:00Converted to UTC: 14:30 +00:00
Add 2 days to 2026-10-24T09:30:00Z, no timezone set2026-10-26T05:30:00.000-04:00 (America/New_York)
Same, workflow Europe/Paris2026-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-312026-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 day2026-10-24T00:00:00.000-04:00
Get Current Date, Include Current Time offMidnight in the workflow timezone, -04:00
Get Current Date, timezone ParisError: The timezone Paris is not valid. Please check the timezone.
Extract Week Number of 2026-10-2443 (ISO week)
Extract Day of Month of 2026-10-01, New York30: the day before
Get Time Between Dates, 1.5 days, unit DayAn 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 tbdWhole 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

Good to know

What we didn't test

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

New guides

Still stuck on your n8n error?

Paste the exact error and say what the workflow should do. We reproduce it on a real n8n install and email you the fix or a working workflow, usually within 24h. Free while we're in beta.

We'll only email you about your error and TaskToAgent.