Date Range

Creates a date picker that can be used to filter a query. Includes a set of preset ranges for quick selection of common date ranges. These are relative to the supplied end date.

To see how to filter a query using an input component, see Filters.

From 2019-01-02 to 2021-12-19

Examples

Using Date Range from a Query

From 2019-01-02 to 2021-12-19

Manually Specifying a Range

With a Title

Select a Date Range

Visible During Print / Export

Filtering a Query

Line Chart
isNan is not defined

Customizing Single Preset Ranges

Customizing Multiple Preset Ranges

Default Value for Preset Ranges

Options

Required
Name of the DateRange, used to reference the selected values elsewhere as {inputs.name.start or inputs.name.end
Options:
string
Query name, wrapped in curly braces
Options:
query name
Column name from the query containing date range to span
Options:
column name
A manually specified start date to use for the range
Options:
string formatted YYYY-MM-DD
A manually specified end date to use for the range
Options:
string formatted YYYY-MM-DD

Title to display in the Date Range component

Options:
string

Customize "Select a Range" drop down, by including present range options. Range options: 'Last 7 Days' 'Last 30 Days' 'Last 90 Days' 'Last 365 Days' 'Last 3 Months' 'Last 6 Months' 'Last 12 Months' 'Last Month' 'Last Year' 'Month to Date' 'Month to Today' 'Year to Date' 'Year to Today' 'All Time'

Options:
string | array of values e.g. {['Last 7 Days', 'Last 30 Days']}

Accepts preset in string format to apply default value in Date Range picker. Range options: 'Last 7 Days' 'Last 30 Days' 'Last 90 Days' 'Last 365 Days' 'Last 3 Months' 'Last 6 Months' 'Last 12 Months' 'Last Month' 'Last Year' 'Month to Date' 'Month to Today' 'Year to Date' 'Year to Today' 'All Time'

Options:
string e.g. Last 7 Days or Last 6 Months
Hide the component when the report is printed
Options:

Adds an info icon with description tooltip on hover

Options:
string