Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

StandardDateFilterDurationGroup Class

Contains information about the standard date filter groupings, such as the grouping display label and all standard date filters that fall under the grouping. Groupings include Calendar Year, Calendar Quarter, Calendar Month, Calendar Week, Fiscal Year, Fiscal Quarter, Day, and custom values based on user-defined date ranges.

Namespace

Reports

StandardDateFilterDurationGroup Methods

The following are methods for StandardDateFilterDurationGroup.

getLabel()

Returns the display label for the standard date filter grouping.

Signature

public String getLabel()

Return Value

Type: String

getStandardDateFilterDurations()

Returns the standard date filter groupings.

Signature

public List<Reports.StandardDateFilterDuration> getStandardDateFilterDurations()

Return Value

Type: List<Reports.StandardDateFilterDuration>

For example, a standard filter date grouping might look like this:
1Reports.StandardDateFilterDuration[endDate=2015-12-31, label=Current FY, startDate=2015-01-01, value=THIS_FISCAL_YEAR],                                 
2Reports.StandardDateFilterDuration[endDate=2014-12-31, label=Previous FY, startDate=2014-01-01, value=LAST_FISCAL_YEAR],                                 
3Reports.StandardDateFilterDuration[endDate=2014-12-31, label=Previous 2 FY, startDate=2013-01-01, value=LAST_N_FISCAL_YEARS:2]