A named style ("iso", the default, "short", "medium", "long", "relative", "weekday", "month", "year") or a pattern of Moment's tokens, which Notion, Airtable and Bases share: YYYY, MM, DD, MMMM, ddd, dddd, Do, HH, hh, mm, A, Q, W, with [text] kept as written, as in formatDate(Due, "dddd D MMMM"). Words are the reader's language's: "weekday" is "Thursday", or "Donnerstag" in German. With a zone, a moment is drawn in it. The result is text; to keep a date that sorts and filters, set the property's display instead.

Syntax

formatDate(date, style or pattern?, zone?)

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

Try an example

formatDate(Due, "long")

Returns "December 31, 2026" (text).

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