Skip to content

Date & Time

The Date & Time node performs date operations: get the current date, add or subtract an amount of time to a date, or reformat an existing date into different output formats. The result is stored in a data field so the following nodes can use it.

It is equivalent to n8n’s Date & Time node.

The input date accepts ISO format, a numeric timestamp, or any expression resolvable with dynamic variables. If the input date is empty (or cannot be parsed), the current date and time are used.

ParameterTypeRequiredDescription
actionselectYesOperation: now (current date), format (reformat), add (add), subtract (subtract), startOf / endOf (start or end of day, week —Monday to Sunday—, month or year, in UTC). An unknown action returns an error
valuetextNoDate to process (ISO, timestamp or expression). Empty with now = current date. Supports dynamic variables
amountnumberNoAmount to add or subtract (only for add / subtract)
unitselectNoDelta unit: years, months, weeks, days (default), hours, minutes, seconds
formatselectNoOutput format: iso (ISO 8601, default), date (YYYY-MM-DD), time (HH:MM:SS), unix (seconds), locale (locale), sql (YYYY-MM-DD HH:MM:SS), month (YYYY-MM)
outputKeytextNoField name to store the result. Defaults to datetime

The node adds the result to data in the field named by outputKey (default datetime):

{
"customer": "Ana",
"datetime": "2026-08-10T14:32:05.000Z"
}
{
"label": "Now",
"action": "now",
"format": "iso",
"outputKey": "now"
}

Result: { "now": "2026-08-10T14:32:05.000Z" }.

{
"label": "Due date",
"action": "add",
"value": "{{data.issue_date}}",
"amount": "7",
"unit": "days",
"format": "date",
"outputKey": "due_date"
}

Result: { "due_date": "2026-08-17" }.

{
"label": "Locale format",
"action": "format",
"value": "{{data.timestamp}}",
"format": "locale",
"outputKey": "readable_date"
}
{
"label": "1 hour ago",
"action": "subtract",
"amount": "1",
"unit": "hours",
"format": "unix",
"outputKey": "since"
}
  • If the input data is an object, the result is added without losing existing fields; if not, it is wrapped in { data, [outputKey] }
  • All calculations are done in UTC: adding days does not shift the hour for daylight saving, and adding or subtracting months or years does not overflow the end of the month (31 Oct − 1 month = 30 Sep; 29 Feb 2024 + 1 year = 28 Feb 2025)
  • The value field supports dynamic and cross-node variables: {{data.field}}, {{@NodeName.field}}
  • Does not require credentials