# WEEKNUM Function

> Return the week number of a date with WEEKNUM in TX Sheet Control: weeks starting on Sunday or Monday, ISO 8601 week numbers with type 21, errors, an example.

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

---

## On This Page

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

---

## Nearby

- **Previous:** [WEEKDAY Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/weekday/llms.txt)
- **Next:** [WEIBULL Function](https://docs.textcontrol.com/tx-sheet-control/reference/formula-functions/weibull/llms.txt)
