---
schema_version: "1"
id: 7de5dc67a085cf0c11d64af887ccc17ad3e86dc626f0b482802e1391f778cc64
title: day_in_quarter(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-quarter.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-saql/guide/bi-saql-functions-timezone-day-in-quarter.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: cc2199c9243e41e82ac50020182c475cac6d4e03c18bb615eab3e3c1d34c65b6
products:
  - Analytics SAQL Developer Guide
  - analytics
---

# day_in_quarter(date)

Returns an integer representing the day of the quarter for a specific date.

```nolang
q = foreach q generate day_in_quarter('OrderDate') as "Day in Quarter";
```
