Calligra Sheets DAYNAME: Weekday Names, Locale and Examples
Use DAYNAME(weekday) in Calligra Sheets to turn a weekday number into its localized full name. Includes a seven-row worksheet, WEEKDAY method and pitfalls.
Verification status: Consult the documentation and examples below. Native application testing has not been documented for this guide. How formula examples are checked
Purpose and quick answer
DAYNAME converts a weekday number into a localized weekday name. Its documented input is an integer from 1 to 7, and its result is text. In an English locale, =DAYNAME(1) has the expected result Monday; =DAYNAME(7) has the expected result Sunday. A complete date is not the intended direct input: first obtain its weekday number using WEEKDAY(date;2). [K1, K3, K4, K5]
Evidence scope: Target Calligra 26.08.2, released October 8, 2026; the C++ date/time module, function XML, Calligra localization wrapper, KDE handbook and Qt C++ locale documentation were inspected October 13, 2026. These are documentation/source-inferred expected outputs, not observations from a running Calligra spreadsheet. Native Calligra execution and screenshots were unavailable. [K1–K6]
Exact syntax, argument types and limits
=DAYNAME(weekday)
| Position | Argument | Official XML type | Valid documented range | Documented default |
|---|---|---|---|---|
| 1 | weekday |
Integer (whole number) | 1–7 | None |
The official XML defines one integer parameter and a string return type. The release source registers DAYNAME as new Function("DAYNAME",func_dayname) with no alternate-name registration, but it does not explicitly call setParamCount(1); therefore the documented arity is one and no omitted-argument or extra-argument behavior is guaranteed from this registration. Do not use aliases or undocumented defaults. The one-argument function requires no delimiter. For nested functions, KDE’s English handbook uses semicolons between arguments, such as WEEKDAY(A2;2); the installed formula-entry locale might be configured differently. [K1–K3]
Locale nuance: The handbook explains that countries use different first days of the week, but the pinned Calligra implementation does not itself shift the weekday number by the locale’s first-day setting. It converts the argument with asInteger(), calls Calligra Localization::dayName(number), and returns the localized string. The actual Calligra wrapper calls Qt C++ QLocale::standaloneDayName(number, LongFormat). Qt C++ uses Monday=1, Tuesday=2, … Sunday=7, regardless of the locale’s calendar-week starting day. The spelling and grammatical standalone form depend on locale. This is a source-level conclusion, not a native multi-locale experiment. [K2–K4, Q1]
Reproducible seven-row worksheet
Open a blank worksheet, put Weekday index in A1, Name from DAYNAME in B1 and English reference in C1. Enter integers 1 through 7 in A2:A8. In B2 enter =DAYNAME(A2) and fill it down to B8. Compare against this English-locale expected-results table (do not interpret it as a screenshot or native-run log). [K1–K4, C1]
| Row | A input | B formula | Expected English result |
|---|---|---|---|
| 2 | 1 | =DAYNAME(A2) |
Monday |
| 3 | 2 | =DAYNAME(A3) |
Tuesday |
| 4 | 3 | =DAYNAME(A4) |
Wednesday |
| 5 | 4 | =DAYNAME(A5) |
Thursday |
| 6 | 5 | =DAYNAME(A6) |
Friday |
| 7 | 6 | =DAYNAME(A7) |
Saturday |
| 8 | 7 | =DAYNAME(A8) |
Sunday |
KDE explicitly documents Monday as an example for DAYNAME(1) when the week starts Monday. Qt’s 1–7 C++ mapping independently supports the full ordering. Validation method: comparison with official documentation and the pinned implementation, plus an independent Python Gregorian calendar lookup; native Calligra execution: NOT DONE. [K1, K4, Q1, C1]
Advanced case: name the weekday of an actual date
To label dates for a staff rota, enter Date in E1, Weekday number in F1 and Weekday label in G1. In E2 enter a typed date formula, =DATE(2026;6;1). In F2 enter =WEEKDAY(E2;2); in G2 enter =DAYNAME(F2). The expected F2 result is 1, and expected G2 text is Monday (English locale). You can combine those two steps: =DAYNAME(WEEKDAY(E2;2)). The date’s weekday was independently checked using Python date(2026,6,1).weekday() == 0, not by executing Calligra. [K1, K5, C2]
| Cell | Value/formula | Expected interpretation |
|---|---|---|
| E2 | =DATE(2026;6;1) |
A typed date, June 1, 2026 |
| F2 | =WEEKDAY(E2;2) |
1: Monday-first indexing |
| G2 | =DAYNAME(F2) |
Monday in English |
| H2 | =DAYNAME(WEEKDAY(E2;2)) |
Monday in English |
Avoid a hidden off-by-one error. KDE documents WEEKDAY’s default method 1 as Sunday=1, Monday=2, whereas method 2 is Monday=1, … Sunday=7. Its default numbering is therefore not compatible with passing the result directly into the pinned DAYNAME numbering. For Monday 2026-06-01, =DAYNAME(WEEKDAY(E2)) is source-inferred to label Tuesday, not Monday. Specify ;2 explicitly. This distinction matters even inside the same software. [K1, K4, K5, C2]
Advanced case: sortable schedules and display labels
Keep the original date as the data value; create a separate numeric sort key =WEEKDAY(E2;2) and a label =DAYNAME(WEEKDAY(E2;2)). Sort by the number, not the English weekday names (alphabetical labels would put Friday before Monday). For a Sunday-first presentation, arrange or remap your sort key as needed; do not assume switching the calendar’s displayed first weekday changes the Calligra-to-Qt 1–7 name mapping. In translated worksheets, weekday names may vary in spelling or grammar while the numeric key stays portable. [K1, K4, K5]
Troubleshooting: unsupported and ambiguous inputs
- A date passed instead of a weekday index.
DAYNAME(E2)on a typed date is not the documented one-number use. WriteDAYNAME(WEEKDAY(E2;2))instead. Date serials may convert to numbers outside 1–7; no exact error text was observed. [K1, K3, K5] WEEKDAYdefault used accidentally. Its default Sunday=1 gives indices that disagree with the DAYNAME-to-Qt 1=Monday mapping. Set method 2, and test Monday and Sunday rows before deploying a staffing report. [K1, K4, K5]- Zero, eight, negative and fractional inputs. Valid documented range is whole numbers 1–7. The code performs Calligra
asIntegerconversion and checks whether the returned string is null before returning a value error. Whether0,8,2.7, a text cell, or a blank causes a particular error is not established by the published examples. Do not invent a#VALUE!display claim or rounding rule; verify natively for your installed build. [K1–K4] - Missing or excess parameters. The XML specifies one parameter, but explicit
setParamCountis absent from DAYNAME’s registration. Neither=DAYNAME()nor=DAYNAME(1;2)has a verified runtime outcome here; do not treat either as supported syntax. [K1–K3] - Unexpected language / grammatical form. Output is localized standalone weekday text. If a workbook is switched to another language, an English comparison column may differ even when the numeric weekday is correct. Avoid English string comparison for program logic; compare numeric weekday indices instead. [K3, K4, Q1]
- Function not recognized after importing. Confirm you are in Calligra Sheets and that its date/time module exists in that package. Catalogue registration in the 26.08.2 source is evidence of shipped definitions, not proof of your installed runtime. [K2, K6]
Cross-compatibility: Excel is not Calligra
Calligra Sheets: Use DAYNAME(1) for a weekday number, or DAYNAME(WEEKDAY(E2;2)) for a real date in E2. The integer-to-string conversion, source-backed 1–7 mapping and localization are Calligra-specific. [K1–K5]
Microsoft Excel: Do not assume the DAYNAME name exists or behaves identically there. Microsoft documents TEXT(TODAY(),"dddd, mmmm dd") for the full weekday in an Excel date, so the analogous Excel-only =TEXT(E2,"dddd") formats a date cell as its full weekday name. Excel’s comma delimiter here is a Microsoft example, not evidence of Calligra’s TEXT behavior. Avoid claiming syntax for LibreOffice, Google Sheets, or other vendors without independently checking their official functions. [M1]
Related guides and verified links
The official Calligra DAYNAME entry covers its one-argument syntax and integer range. The WEEKDAY entry specifies methods 1–3 and demonstrates Monday-first method 2. Qt’s C++ locale API documents localized full weekday names. These external links were checked October 13, 2026. [K1, K5, Q1]
Claim-level primary evidence
| ID | Supported claim | Official source, version and date |
|---|---|---|
| K1 | DAYNAME syntax, 1–7 range and Monday example | KDE Sheets handbook, DAYNAME, accessed 2026-10-13 |
| K2 | DAYNAME registered with no alternate name or explicit param-count call | Pinned Calligra datetime.cpp lines 94–95, 26.08.2; checked 2026-10-13 |
| K3 | Integer conversion, localized call, null-string error guard | Pinned datetime.cpp lines 542–551, and official datetime.xml; checked 2026-10-13 |
| K4 | Calligra wrapper calls Qt standaloneDayName(LongFormat) |
Pinned Localization.cpp lines 428–441 and header; checked 2026-10-13 |
| K5 | WEEKDAY method 2 versus default method 1 | KDE WEEKDAY handbook, accessed 2026-10-13 |
| Q1 | Qt C++ name order and locale forms | Qt official QLocale documentation, accessed 2026-10-13 |
| K6 | Calligra release version/date context | KDE app release metadata, accessed 2026-10-13 |
| M1 | Separate Excel TEXT approach | Microsoft support: Include text in formulas, accessed 2026-10-13 |
| C1 | English weekday expectations | Independently mapped with Python calendar.day_name; documented Qt/Calligra source checks, not native execution |
| C2 | 2026-06-01 is Monday | Independently verified using Python Gregorian datetime (weekday = 0, Monday), plus official WEEKDAY mode documentation; no Calligra run |
Testing limitation: Native workbook locale, import behavior and visible errors remain untested.