# DATEDIF Function

> Calculate the complete years, months or days between two dates with DATEDIF in TX Sheet Control: the units Y, M, D, MD, YM and YD and the #NUM! error.

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

---

## On This Page

- [Syntax](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/datedif/#syntax)
- [Examples](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/datedif/#examples)
- [See Also](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/datedif/#see-also)

---

## Nearby

- **Previous:** [DATE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/date/llms.txt)
- **Next:** [DATEVALUE Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/datevalue/llms.txt)
