DAY Function in WPS Spreadsheet: Formula, Examples & Troubleshooting
Learn the DAY formula in WPS Spreadsheet: 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 the month as an integer from 1 through 31. It does not count elapsed days or identify the weekday. Format its answer as a plain number.
Availability and version history
- Introduced: documented by 2019-06-10 in the WPS lesson; original introduction is not established.
- Availability: WPS Office for Windows Personal; no numeric release is stated in the lesson metadata.
- Scope: current supported builds remain unverified; the historical Windows evidence does not establish every WPS client.
- Checked: October 14, 2026. Full function-specific review and independent calendar models; no native WPS test was performed.
Syntax and arguments
=DAY(serial_number)
Use a valid date value, date-cell reference or DATE expression. The output is the position within the month; it resets when a new month begins.
Prepare the inputs
Enter these literal formulas into unused cells. Display DATE outputs as dates and YEAR, MONTH, DAY, WEEKDAY and WEEKNUM component outputs as General or Number. Examples use English names and comma separators; adapt separators to the workbook locale. All displayed expectations are independent calculations, with additional model assumptions labeled where needed.
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 day components with elapsed days
Enter =DATE(2026,1,31) in A2 and =DATE(2026,2,2) in B2:
=DAY(A2)
=DAY(B2)
=DAY(B2)-DAY(A2)
=B2-A2
Expected numeric results are 31, 2, −29 and 2. Only the last formula measures the elapsed day difference between these modern date-only inputs. DAY’s components alone discard the month and year.
For an inclusive count of the listed calendar dates, =B2-A2+1 gives 3: 31 Jan, 1 Feb and 2 Feb. Choose elapsed versus inclusive counting deliberately; DAY itself does neither.
Advanced example: reconstruct the first of the month
With a valid date in D2, the day component tells you how many days to step back to day 1:
=D2-DAY(D2)+1
| D · Date-only input | Expected boundary |
|---|---|
| 29 Feb 2024 | 1 Feb 2024 |
| 31 Jan 2026 | 1 Jan 2026 |
| 2 Feb 2026 | 1 Feb 2026 |
| 11 Oct 2026 | 1 Oct 2026 |
Format the boundary as a date. These controls use date-only inputs; a hidden time fraction is not removed merely by subtracting an integer day component. To construct a date from components explicitly, use =DATE(YEAR(D2),MONTH(D2),1) instead.
Advanced example: classify a simple within-month window
Suppose a reporting policy labels days 1–10 as Early, days 11–20 as Middle and later dates as Late. With a valid date in F2:
=IF(DAY(F2)<=10,"Early",IF(DAY(F2)<=20,"Middle","Late"))
For dates 10, 11, 20, 21 and 31 Jan 2026, the labels are Early, Middle, Middle, Late and Late. The boundaries are inclusive exactly as written. This policy groups by day number; it does not promise equal-length windows, count business days or account for holidays.
A different policy such as the last ten days of a month cannot safely be expressed as DAY >= 21 for every month. February and 30-day months have different lengths. Define the intended interval before converting it into comparisons.
Input and display checks
Use WEEKDAY when the question is Monday versus Tuesday. Use MONTH for the month component. All three return numeric components, which should remain in General or Number format.
The WPS source warns about text dates and recommends date-producing formulas. Its repeated absolute-serial-origin note has inconsistent day-count wording; no hard-coded origin or imported date-system behavior is certified here. Blank references, arbitrary strings, negative serials and invalid-input error codes remain outside the verified scope.
Related guides and verification
Related guides already published for this function: Microsoft Excel | Google Sheets | LibreOffice Calc | Apache OpenOffice Calc | Gnumeric
Each program has its own date-system and version scope; a shared function name does not establish identical coercion, boundary or formatting behavior.
- WPS Academy: DAY, 2019-06-10 (Chinese; Windows Personal).
- WPS Academy: DATE.
- WPS Academy: YEAR.
- WPS Academy: MONTH.
- Editorial testing standards.
Evidence level: Complete function-specific WPS sources and the full article reviewed. Original title, publication date and two worked formulas are preserved. Calendar calculations are independently modeled, not observed native WPS results.