# DAY Function

> Return the day of the month from 1 to 31 of a date serial number or date text with the DAY formula function of TX Sheet Control: errors and an example.

- **Product:** TX Sheet Control
- **Section:** Documentation
- **Kind:** Function
- **Path:** TX Sheet Control > API Reference > Formula Functions > DAY Function
- **189 words**
- **Web URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/day/
- **LLMs URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/day/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/day/llms-full.txt

---

Return the day of the month of a date, from 1 to 31. `serial_number` is a date serial number or a date in text form, such as "2026-10-09". A negative number returns `#NUM!`, and text that is not a date returns `#VALUE!`.

### Syntax

```text
DAY(serial_number)
```

Category: Date & Time. Minimum arguments: 1. Maximum arguments: 1.

Available for supported offline calculation.

### Examples

```text
=DAY(45292)
```

The formula returns 1, because the serial number 45292 is January 1, 2024.

Cell and range examples require appropriate input values in the referenced cells. Handle invalid arguments, formula errors and array and spill constraints.

### See Also

- [Formulas](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/formulas/llms-full.txt)
- [Custom Functions and Formula Data](https://docs.textcontrol.com/tx-sheet-control/spreadsheets/custom-functions/llms-full.txt)

---

## Nearby

- **Previous:** [DAVERAGE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/daverage/llms-full.txt)
- **Next:** [DAYS Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/days/llms-full.txt)
