Shared - date filtering special values

Shared - date filtering special values

Special Values

The date fields support some special values to make range selection easier:

Value

Scale

Description

Resolution

today

day

  • Use for startDate to retrieve all entries for the current day.

Date only

-1d, -2d, ...

day

  • Use for startDate and/or endDate.

  • Use to indicate days back from today's date. 

  • For instance, setting startDate to -1d will get data for yesterday.

Date only

-1h, -2h, ...

hour

  • Use for startDate and/or endDate.

  • Use to indicate hours back from now. 

  • For instance, setting startDate to -24h will get data for the last 24 hours.

Date and time

-30m, -90m, ...

minute

  • Use for startDate and/or endDate.

  • Use to indicate minutes back from now.

  • For instance, setting startDate to -30m will get data for the last 30 minutes.

Date and time

-30s, ...

seconds

  • Use for startDate and/or endDate.

  • Use to indicate seconds back from now.

Date and time