DateGranularity Enum

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

Reports

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

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

ValueDescription
DAYThe day of the week (Monday–Sunday)
DAY_IN_MONTHThe day of the month (1–31)
FISCAL_PERIODThe fiscal period
FISCAL_QUARTERThe fiscal quarter
FISCAL_WEEKThe fiscal week
FISCAL_YEARThe fiscal year
MONTHThe month (January–December)
MONTH_IN_YEARThe month number (1–12)
NONENo date grouping
QUARTERThe quarter number (1–4)
WEEKThe week number (1–52)
YEARThe year number (####)