Date Input

A date input component allows the user to select a date or a range of dates. The selected dates can be used as inputs to queries or components.

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

Date Input
Loading...

Examples

Using Date Input from a Query

The Date selected can be accessed through the inputs.[name].value

Date Input

Date Selected: 2019-01-02

With a Title

Select a Date Input

Date Range

Creates a date picker for selecting a date range to filter queries, with selectable preset date options.

Filtering a Query with Range Calendar

The Date selected can be accessed through the inputs.[name].start & inputs.[name].end

Date Input
Loading...

Default Value for Preset Ranges

Date Input

Customizing Single Preset Ranges

Date Input

Customizing Multiple Preset Ranges

Date Input

Manually Specifying a Range

Date Input

Options

Required
Name of the DateInput, 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
toggles between a ranged and single input calendar
Options:
Column name from the query containing Date Input 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 Input 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 3 Months' 'Last 6 Months' 'Last 12 Months' 'Last Month' 'Last Year' 'Month to Date' 'Year to Date' '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 Input picker. Range options: 'Last 7 Days' 'Last 30 Days' 'Last 90 Days' 'Last 3 Months' 'Last 6 Months' 'Last 12 Months' 'Last Month' 'Last Year' 'Month to Date' 'Year to Date' 'All Time'

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