date
Construct a date serial number from year, month, day.
Syntax
Section titled “Syntax”v = date(year, month, day)Description
Section titled “Description”Returns the serial number for the given date. Supports out-of-range values: date(2026, 13, 1) is date(2027, 1, 1); negative month and day work similarly.
Note: name-clashes with the script-mode date() (no-args, returns current date string). Excel-compatible mode dispatches based on the argument count.
Example
Section titled “Example”date(2026, 4, 28) % serial for 2026-04-28