> For the complete documentation index, see [llms.txt](https://docs.tomat.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.tomat.ai/data-transformation/formulas/date-and-time-functions/dayofyear.md).

# DayOfYear

Gets the day-of-year number of a date \ datetime

```mathematica
DayOfYear("2022-02-22 20:00:00.000") → 53
DayOfYear("2022-07-08") → 189
```

#### Inputs

`DayOfYear(dateTime)`

* `dateTime` - Date, time, or datetime value
