# DATEVALUE Function

> Convert a date in text form into a date serial number with the DATEVALUE formula function of TX Sheet Control: time parts, the #VALUE! error, an example.

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

---

Convert a date in text form into a date serial number. `date_text` is a date as text, such as "2026-10-09"; a time in the text is ignored. Text that is not a date returns `#VALUE!`. Format the cell as a date to show the result as a date.

### Syntax

```text
DATEVALUE(date_text)
```

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

Available for supported offline calculation.

### Examples

```text
=DATEVALUE("2026-10-09")
```

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