Time selector

The Castle Dashboard offers a flexible time selector that can be used to quickly select custom time ranges to drill down in your data.

Once you click the time selector, it will transform into a free form text input field where are able to enter any of the supported formats described below. You can also copy and paste time ranges into this field. Apart from typing the desired dates into the field, you may also choose from any of the quick options in the drop-down or pick a date range from the calendar widget.

Supported syntaxes

Fixed dates

The input field accepts date ranges where the from and to dates need to be separated by a dash with whitespace on each side: -. Any of the date formats below can be combined. For example: 2022-10-10 - Oct 29 2022, 12:34 AM

You can also enter a single date, e.g. 2022-10-10, which will be expanded to the full time range of that date

{MMM/MMMM} D YYYY Oct 10 2022
September 27 2022
{MMM/MMMM} D, YYYY, h:mm aOct 10, 12:34 AM
YYYY-MM-DD HH:mm:ss2022-10-10 12:34Timestamp in local time. Seconds can be omitted
YYYY-MM-DDTHH:mm:ssZ2022-10-10T12:34:56ZTimestamp in UTC. If Z is omitted, local time will be applied
Unix seconds timestamp1669811172
Unix milliseconds timestamp1669811172240

Relative dates

{N}unit2d, 10mSupported values for unit are:

- Minutes: m
- Hours: h
- Days: d
- Weeks: w
- Months: mo
todaySets the time range to the full day of today
yesterdaySets the time range to the full day of yesterday