From text, the app's date line: "2026-03-05", "2026-03-05 14:30", or a span "2026-03-05/2026-03-08". From numbers, a year, a month and a day, and an hour and minute if you give them: date(2026, 3, 5). Text or numbers that are no date give empty.
Syntax
date(text) or date(year, month, day, hour?, minute?)Arguments marked ? are optional. An ellipsis (…) allows more arguments.
Try an example
date("2026-03-05")Returns 2026-03-05 (date).
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.