# DATE Function

> Build a date serial number from a year, month and day with the DATE formula function of TX Sheet Control: two-digit years, carry-over and #NUM!.

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

---

Return the date serial number of a year, month and day. `year` is the year: 0 to 1899 is added to 1900, so 26 is 1926, and 1900 to 9999 is used as it is. `month` and `day` can be outside their usual range and carry over: month 14 is February of the next year, and day 0 is the last day of the previous month. A year less than 0 or greater than 9999 returns `#NUM!`. Format the cell as a date to show the result as a date.

### Syntax

```text
DATE(year, month, day)
```

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

Available for supported offline calculation.

### Examples

```text
=DATE(2026,10,9)
```

The formula returns 46304, the serial number of October 9, 2026.

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:** [CUMPRINC Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/cumprinc/llms-full.txt)
- **Next:** [DATEDIF Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/datedif/llms-full.txt)
