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.

StandardDateFilterDuration Class

Contains information about each standard date filter—also referred to as a relative date filter. It contains the API name and display label of the standard date filter duration as well as the start and end dates.

Namespace

Reports

StandardDateFilterDuration Methods

The following are methods for StandardDateFilterDuration.

getEndDate()

Returns the end date of the date filter.

Signature

public String getEndDate()

Return Value

Type: String

getLabel()

Returns the display name of the date filter. Possible values are relative date filters—like Current FY and Current FQ—and custom date filters.

Signature

public String getLabel()

Return Value

Type: String

getStartDate()

Returns the start date of the date filter.

Signature

public String getStartDate()

Return Value

Type: String

getValue()

Returns the API name of the date filter. Possible values are relative date filters—like THIS_FISCAL_YEAR and NEXT_FISCAL_QUARTER—and custom date filters.

Signature

public String getValue()

Return Value

Type: String