A calendar unit keeps the written time and zone, and a month past the end of the next is its last day: dateAdd(date("2026-01-31"), 1, "months") is February 28. An elapsed unit moves the instant. The units are "years", "quarters", "months", "weeks" and "days" on the calendar, and "hours", "minutes" and "seconds" of elapsed time, singular or plural; a letter such as "M" is refused, since it means months in one language and minutes in another.

Syntax

dateAdd(date, amount, unit)

Arguments marked ? are optional. An ellipsis (…) allows more arguments.

Try an example

dateAdd(Due, 1, "months")

Returns 2027-01-31 (date).

Your turnAn example, separate from your shelf
Change the example note’s properties

Run the expression to see its result here.

Date examples use 9 October 2026, 12:00 UTC. Examples run in your browser using Shelf’s formula engine.

Use it in your library

The example names the sample note’s properties. In the app, the formula editor shows the same example with your library’s own properties. Write a property name with spaces as prop("Target words"). The formula language reference explains values, operators, and lists.

Browse all functions