Create a date input to control parameters in your queries
param
prop to specify the name of the parameter you want to control.
There are two types of date input Single Date or Date Range.
my_date
parameter. If you load the page with the my_date
parameter already in the URL, you will see the value from the URL in the input. You can also provide a default value for the input by using the value
prop with the year-month-day YYYY-mm-dd
format otherwise the default will be today.
YYYY-mm-dd
format_TODAY_
_TOMORROW_
_YESTERDAY_
_ONE_WEEK_AGO_
_ONE_WEEK_FROM_NOW_
_ONE_MONTH_AGO_
_ONE_MONTH_FROM_NOW_
<DatePicker>
component is always date so if you want to make it work with strings for example you will need to cast the values to make them compatible.
startParam
and endParam
which are the ones you will be able to use in your SQL code. It is mandatory to set both otherwise the component will return an error.
For the default values you can use startValue
and endValue
.