> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://help.sigmacomputing.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://help.sigmacomputing.com/_mcp/server.

# Quarter

The **Quarter** function returns an integer representing the quarter in which a specified date and time occurs.

## Syntax

```
Quarter(date)
```

Function arguments:

|          |                                                                                           |
| :------- | :---------------------------------------------------------------------------------------- |
| **date** | The date or column containing date values from which the quarter component is determined. |

Sigma evaluates quarters based on the calendar year. The first quarter begins January 1, the second quarter begins April 1, the third quarter begins July 1, and the fourth quarter begins October 1. To learn how to create and use custom fiscal periods in Sigma, see [How to create custom fiscal year and fiscal quarters](https://community.sigmacomputing.com/t/how-to-create-custom-fiscal-year-and-fiscal-quarters/2613).

## Example

```
Quarter([Date])
```

Evaluates the month and day of each value in the *Date* column and returns an integer representing the quarter in which each date occurs.

```
Quarter(Date("2007-08-14 07:11:05"))
```

Evaluates the month and day of the specified date (August 14, 2007) and returns `3` to represent the third quarter of the calendar year.

## Related resources

* [DatePart](/docs/datepart)
* [Second](/docs/second)
* [Minute](/docs/minute)
* [Month](/docs/month)
* [Year](/docs/year)
* <a href="https://quickstarts.sigmacomputing.com/guide/common_date_functions/index.html?index=..%2F..index#0" target="_blank" rel="noopener noreferrer">
    Quickstart: Common date functions and use cases
  </a>