---
schema_version: "1"
id: 854bcb0e924727899054e21b3582d104252f064d7536ea87fb02534e54547ce0
title: Day in Week, Month, Quarter or Year Functions
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/analytics/bi_dev_guide_sql/guides/bi-sql-date-order-functions.md
canonical_url: https://developer.salesforce.com/docs/analytics/bi-dev-guide-sql/guide/bi-sql-date-order-functions.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 2ee05014780d375442cce4d2b76cde9123da9d7dc0bcc5823e8eda1c04cc9a00
products:
  - SQL for Analytics Developer Guide
  - analytics
---

# Day in Week, Month, Quarter or Year Functions

Use the following functions to find the position of a day within a week, month, quarter, or year.

Date position functions take this syntax.

```nolang
SELECT EXTRACT (FUNCTIONNAME FROM DATE) AS DATEALIAS
FROM DATASET;
```

- **[Day of Week](https://developer.salesforce.com/docs/analytics/bi-dev-guide-sql/guide/bi-sql-date-dow.md)**


    Returns an integer that represents the day of the week for a specific date.

- **[Day of Month](https://developer.salesforce.com/docs/analytics/bi-dev-guide-sql/guide/bi-sql-date-day.md)**


    Returns an integer that represents the day of the month for a specific date.

- **[Day of Quarter](https://developer.salesforce.com/docs/analytics/bi-dev-guide-sql/guide/bi-sql-date-doq.md)**


    Returns an integer that represents the day of the quarter for a specific date. The first quarter of the year begins on January 1.

- **[Day of Year](https://developer.salesforce.com/docs/analytics/bi-dev-guide-sql/guide/bi-sql-date-doy.md)**


    Returns an integer that represents the day of the year for a specific date.
