---
schema_version: "1"
id: e2349b3e1e22881f7ddd61d601d229a06ec25b0aa325d1c557972932e9bf981b
title: DateGranularity Enum
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_enum_reports_dategranularity.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_reports_dategranularity.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 138c64d76ef3f50821358881edf374ab922671b311ff974b11fd80a4ff03ba11
description: The Reports.DateGranularity enum describes the date interval that is used for grouping.
---
# DateGranularity Enum

The Reports.DateGranularity enum describes the date interval that is used for grouping.

## Namespace

[Reports](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_Reports.htm "The Reports namespace provides classes for accessing the same data as is available in the Salesforce Reports and Dashboards REST API.")

## Usage

The GroupingInfo.getDateGranularity method returns a Reports.DateGranularity enum value. The GroupingInfo.setDateGranularity method takes the enum value as an argument.

## Enum Values

The following are the values of the Reports.DateGranularity enum.

| Value | Description |
| --- | --- |
| DAY | The day of the week (Monday–Sunday) |
| DAY\_IN\_MONTH | The day of the month (1–31) |
| FISCAL\_PERIOD | The fiscal period |
| FISCAL\_QUARTER | The fiscal quarter |
| FISCAL\_WEEK | The fiscal week |
| FISCAL\_YEAR | The fiscal year |
| MONTH | The month (January–December) |
| MONTH\_IN\_YEAR | The month number (1–12) |
| NONE | No date grouping |
| QUARTER | The quarter number (1–4) |
| WEEK | The week number (1–52) |
| YEAR | The year number (####) |