---
schema_version: "1"
id: 2821700e200f404f50177af482eff6fd597dc57a925c6a6dfc25fe10016c8048
title: day_in_year(date)
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_saql/guides/concept/bi-saql-functions-timezone-day-in-year.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-saql/guide/bi-saql-functions-timezone-day-in-year.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 25eff3d064bbba7f4affd8afd6f74f8f949244e337dd36dd3cae5c0c3573cc2a
products:
  - Analytics SAQL Developer Guide
  - analytics
---

# day_in_year(date)

Returns an integer representing the day of the year for a specific date.

```nolang
q = foreach q generate day_in_year('OrderDate') as "Day in Year";
```
