DATE Function (Gnumeric)
Learn the DATE function in Gnumeric: Provides an internal number for the date given.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
DATE constructs a spreadsheet date from year, month and day values. Its result is an internal date serial number with a date-format hint, so it can be sorted, compared and used in date arithmetic. A displayed date and a text string that resembles a date are different kinds of data.
Syntax and components
=DATE(year,month,day)
All three numeric arguments are required. Use a full four-digit year and whole-number month/day inputs for ordinary modern dates. Month 1 means January. The result follows the workbook’s date convention; formatting controls its appearance rather than replacing the underlying numeric value.
Month and day values can normalize into neighboring months or years. Consequently, DATE is a constructor with rollover behavior, not a strict validator that every supplied combination is a literal calendar date. Avoid abbreviated years and historical boundary assumptions unless separately verified for the workbook’s settings.
Retained starting example
=YEAR(DATE(2025,1,15))
The expected result is 2025. DATE constructs January 15, 2025 and YEAR extracts its year component. This avoids relying on one particular on-screen date format.
Build and compare dates
Put 2025 in A2, 1 in B2 and 15 in C2. Enter =DATE(A2,B2,C2) in D2 and choose a readable date format such as yyyy-mm-dd. It should represent 2025-01-15.
=DATE(2025,1,15)-DATE(2025,1,1) returns 14 elapsed days. Inclusive counting of both endpoint dates would be a different rule and would add one explicitly. Keep that distinction visible when a duration is intended to count occupied days rather than elapsed intervals.
Rollover examples
=YEAR(DATE(2025,13,1)) returns 2026 because month 13 rolls into January of the next year. =TEXT(DATE(2024,3,0),“yyyy-mm-dd”) returns 2024-02-29: day zero of March means the preceding day.
=TEXT(DATE(2025,2,29),“yyyy-mm-dd”) returns 2025-03-01 because February 2025 has only 28 days. This illustrates why DATE alone should not validate an entered birthday or deadline. If literal components must remain unchanged, compare YEAR, MONTH and DAY of the result with the original components and reject a mismatch.
Advanced use: month-end dates
For a modern year in A2 and month in B2, =DATE(A2,B2+1,0) constructs the last day of that month. At year 2024 and month 2, the result is February 29. At year 2025 and month 2, it is February 28. This uses deliberate normalization rather than a hardcoded month-length table.
Keep the numeric result for calculations. TEXT produces a display string, so the TEXT examples above expose the date clearly but should not replace the serial value when later arithmetic is needed.
Errors, conventions and troubleshooting
The inspected callback rejects invalid year ranges with #NUM! and contains additional bounds and historical-year rules. Extreme and premodern dates are outside this guide’s controls. Fractional month/day values are floored by the source, so use whole-number components rather than depending on truncation assumptions borrowed from another product.
A raw serial number copied between workbooks using different date systems can denote a different date. Transfer dates with explicit conventions and check YEAR/MONTH/DAY after import. If a date looks like a number, inspect formatting; if arithmetic fails, inspect whether the input is text.
Availability and verification
Version coverage: Gnumeric 1.12.57 has the scoped checks below. The 1.12.62 evidence is a documentation/source check dated October 14, 2026.
- Introduced: Original introduction not established. The earliest demonstrated support in this guide is 1.12.57.
- Availability: Supported in Gnumeric 1.12.62, based on the function-specific registration.
- Scope: Desktop; the fn-date function module must be included and enabled.
- Checked: October 14, 2026. Documentation/source check; no new native test in Gnumeric 1.12.62.
The executable contract is also present in the official Gnumeric 1.12.57 fn-date source. The saved source was originally retrieved on October 17, 2026 and re-inspected for this guide. The last functioning release is not established; support in a named version is not a retirement claim.
On October 17, 2026, Gnumeric ssconvert 1.12.57 recalculated a synthetic workbook in the C.UTF-8 locale. Scoped controls: =YEAR(DATE(2025,1,15)) → 2025; =DATE(2025,1,15)-DATE(2025,1,1) → 14; =YEAR(DATE(2025,13,1)) → 2026; =TEXT(DATE(2024,3,0),"yyyy-mm-dd") → 2024-02-29; =TEXT(DATE(2025,2,29),"yyyy-mm-dd") → 2025-03-01. These are native calculation-engine results, not GUI tests or screenshots. Other tutorial layouts and displayed outputs are independent expectations unless covered by these exact formulas. Input/output files, preserved formulas, raw values and hashes were retained. The XLSX importer logged an unused workbookProtection-element warning; changed-input controls and recorded results were checked.