Aller au contenu
Agentic Workflowdocs
v0.8.2Installer gratuitement

nœuds / builtin / datatransformation / datetime

Add To A Date

Add a number of days to a date

Données ExtensionApplication web

Ce contenu n’est pas encore disponible dans votre langue.

Move a date forward by a number of years, months, days, hours or other units.

Add To A Date takes Date to add to, adds Duration of the chosen Time unit to add, and writes the new date into a field named by Output field name.

  • Units: year, quarter (3 months), month, week (7 days), day, hour, minute, second.
  • The calculation uses your computer’s local time zone, so adding 1 day keeps the same clock time even across a daylight-saving change.
  • A negative Duration moves the date back, but Subtract From A Date reads more clearly.
  • Adding a month to the 31st rolls over when the next month is shorter: January 31 plus 1 month gives March 2 or 3.
  • Work out a due date, for example 14 days after an order date.
  • Set an expiry time, such as “now plus 1 hour”.
  • Build the end of a date range to send to an API.
RéglageTypeCe que cela fait
Date to add to (obligatoire)Date and timeThe date to add days to.
Time unit to add (obligatoire)ChoiceThe time unit to add to the date. Options: year, quarter, month, week, day, hour, minute, second.
Duration (obligatoire)NumberThe duration to add to the date.
Output field name (obligatoire)TextThe name of the output field.
Options GroupThe options for the node.
Options › Include input fields ToggleWhether to include the input fields in the output. Par défaut : Off

Date to add to accepts a date you pick, or an expression such as {{ $input.createdAt }}. ISO dates (2026-03-01, 2026-03-01T09:30:00Z) are the safest format.

  • Output

The item holds one field, named by Output field name, with the new date. Turn on Include input fields to keep the incoming fields next to it, for example { dueDate, orderId, customer }.

None. This node needs no connection and has no slots for other nodes.

Remind yourself of a follow-up one week from today:

  1. Get Current Date, Output field name now.
  2. Add To A Date, Date to add to {{ $input.now }}, Time unit to add week, Duration 1, Output field name followUp.
  3. Format Date, Date to format {{ $input.followUp }}, Format DD/MM/YYYY.
  4. Browser Notification showing the formatted date.
  • The output is “Invalid Date” or empty. The incoming value is not a date the browser understands. Use an ISO date such as 2026-03-01, or reshape it first.
  • The result is off by a few hours. The date was read in a different time zone than you expected. Include the time zone in the input (Z or +02:00).
  • The new date is missing after the node. With Include input fields on, an incoming field with the same name as Output field name replaces the result. Pick a name the input does not already use.
Modifier cette page

Dernière mise à jour :

Was this page useful?
Demander à Aria à propos de Add To A Date