DAY Function in Collabora Office Calc: Formula, Examples & Troubleshooting
Learn the DAY formula in Collabora Office Calc: extract the day of month from a date, with reproducible examples, expected answers and compatibility cautions.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: DAY extracts the day-of-month number from a date value. Its result is an integer from 1 through 31, not a date serial, weekday code or elapsed-day count. Display the extracted result as a plain number.
Availability and version history
- Introduced: original Collabora release and launch date are not established by the sources reviewed.
- Availability: documented in Collabora Office 26.04 help, scoped to the desktop-help release.
- Platform scope: online and mobile deployments are not inferred from desktop documentation.
- Checked: October 14, 2026. Direct function documentation and independent calendar controls; no native Collabora test was performed.
Syntax and arguments
=DAY(number)
number is the internal numeric date value or a date expression. The dedicated reference allows negative date/time values and documents a day-of-month integer. These examples use explicit modern dates created with DATE, avoiding locale-dependent text parsing.
Prepare the original controls
The original controls use literal components and need no source table. Use English function names and semicolon argument separators. Display DATE and EOMONTH outputs with date formatting; display DAY, MONTH, YEAR and WEEKDAY results as plain numbers. Adapt separators only when the document configuration requires it.
Example 1: original control
=DAY(DATE(2026;10;11))
Expected result: 11. The day component of October 11 is 11.
Example 2: original comparison
=DAY(DATE(2024;2;29))
Expected result: 29. Leap-day date returns day 29.
Example 3: compare adjacent dates across a month boundary
Enter these date formulas in A2:A4:
=DATE(2026;1;31)
=DATE(2026;2;1)
=DATE(2026;2;2)
In B2 use =DAY(A2) and fill down. Expected results are 31, 1 and 2. The day number restarts at one when the month changes.
Subtracting the extracted numbers 1−31 gives −30, even though February 1 is only one day after January 31. To measure elapsed days, subtract the date values themselves: =A3-A2 has expected result 1.
Example 4: distinguish day of month from weekday
For 11 October 2026:
=DAY(DATE(2026;10;11))
=WEEKDAY(DATE(2026;10;11);2)
Expected results are 11 and 7, respectively. The first answers which day within October; the second identifies Sunday under Monday-first numbering. Their different ranges represent different questions, not alternative display formats of the same number.
Advanced example: find the number of days in a month
=DAY(EOMONTH(DATE(2024;2;4);0))
=DAY(EOMONTH(DATE(2026;2;4);0))
Expected results are 29 and 28. EOMONTH produces the last date of the containing month; DAY extracts that final day number, which equals the month’s length.
For April 2026, the same pattern gives 30. This calendar-aware approach avoids assigning every month a fixed length or assuming every February has 28 days.
Advanced example: return to the month’s first date
Put =DATE(2026;10;11) in D2:
=D2-DAY(D2)+1
Expected date: 1 Oct 2026 when D2 is the specified whole-date value. Eleven is the day number, so subtracting ten days reaches the first day.
A timestamp changes the interpretation. If D2 is instead =DATE(2026;10;11)+0.5, the expression preserves the fractional part and gives 1 Oct 2026 at noon. To construct the month’s first midnight explicitly, use =DATE(YEAR(D2);MONTH(D2);1).
The date/time documentation represents time as a fraction of a day. DAY extracts the calendar component; it does not by itself remove the time fraction from a different expression that still contains the original timestamp.
Advanced check: extract the same day from a time-bearing value
=DAY(DATE(2026;10;11)+0.75)
Expected result: 11, since the value represents 18:00 on the same calendar date under the standard day-fraction model. The result has no time component to format as a clock time.
No timezone conversion is performed by these functions. A timestamp labeled in another timezone must be converted under a separately defined policy before a local calendar day can be inferred.
Parsing and display cautions
DAY(2026-10-11) would contain subtraction, not a DATE expression. The official help recommends DATE or unambiguous quoted ISO text rather than locale-dependent slash dates. These examples use DATE so they do not require changes to text-conversion settings.
The source’s DAY(1)=31 example assumes the documented default date base, 1899-12-30. It should not become a universal raw-serial claim across files with different bases.
If an extracted result displays as a date, change the output’s number format rather than changing a correct DAY formula. Exact malformed-input errors and all negative-serial boundaries remain outside the independently checked modern-date examples.
Related program guides
References and verification
- Collabora Office 26.04: DAY.
- Collabora Office 26.04: date bases and date/time calculation.
- Editorial testing standards.
The complete older article and its original worked formulas were reviewed. The direct function and date-system references replace an unrelated category citation. Calendar outputs are independent expectations; no native Collabora execution or Online/mobile parity is claimed.