--- title: "Date range type" slug: "date-date-range-value-type" updated: 2026-05-18T09:32:18Z published: 2026-05-18T09:32:18Z canonical: "docs.lobstersoftware.com/date-date-range-value-type" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Date range type The [Date range type](/v1/docs/en/date-date-range-value-type) (`DateRangeValueType`) dynamic enumeration specifies choices for the "type" in the [Relative date range with time](/v1/docs/en/core-date-range-value) value resolver: - All options except the "Custom" type are predefined time specifications, for each of which a pattern for **Start** and **End** can be stored as a date calculation, which is applied relative to the current *system time*. - For the "Custom" (`CUSTOM`) option, such patterns are ignored (they are empty by default), since patterns using the "Start value" and "End value" parameters in the [Relative date range with time](/v1/docs/en/core-date-range-value) value resolver are used instead (see [Relative date range with time](/v1/docs/en/core-date-range-value) for details). In addition, the values in this dynamic enumeration define filter options for date and date range columns in data grids and overviews. ![images/download/attachments/212896294/image2022-9-12_15-55-19-version-1-modificationdate-1751626981113-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2022-9-12_15-55-19-version-1-modificationdate-1751626981113-api-v2.png) The following definitions for default values are predefined at delivery: | Name | Localization (English) | Start (Pattern) | End (Pattern) | Comments | | --- | --- | --- | --- | --- | | ***Timeline*** | | `LAST_SIXTY_MINUTES` | **Last 60 minutes** | `-60m` | ** | ... the last 3,600,000 milliseconds (= "60 minutes") until "Now" (default value/no **End** pattern). | | `LAST_12_HOURS` | **Last 12 hours** | `-12H` | ** | ... the last 43,200,000 milliseconds (= "12 hours") until "Now" (default value/no **End** pattern). | | `LAST_24_HOURS` | **Last 24 hours** | `-24H` | ** | ... the last 86,400,000 milliseconds (= "24 hours") to "Now" (default value/no **End** pattern). | | `LAST_7_DAYS` | **Last 7 days** | `0h 0m 0s 0S -6d` | `23h 59m 59s 999S` | ... the period from the beginning of the calendar day 6 days ago (`-6d`) to "End today" (see [Date time type](/v1/docs/en/date-date-time-value-type)). | | ***Full hour (period)*** | | `THIS_HOUR` | **Current hour** | `0m 0s 0S` | `59m 59s 999S` | ... the period from the first to the last millisecond of the current (complete) hour. | | `LAST_HOUR` | **Previous hour** | `0m 0s 0S -1h` | `59m 59s 999S -1h` | ... the period from the first to the last millisecond of the previous (complete) hour (`-1h`). | | `NEXT_HOUR` | **Next hour** | `0m 0s 0S +1h` | `59m 59s 999S +1h` | ... the period from the first to the last millisecond of the next (complete) hour (`+1h`). | | **Calendar day (period)** | | `TODAY` | **Current day** | `0h 0m 0s 0S` | `23h 59m 59s 999S` | ... the period from "Start today" to "End today" (see [Date time type](/v1/docs/en/date-date-time-value-type)) | | `YESTERDAY` | **Previous day** | `0h 0m 0s 0S -1d` | `23h 59m 59s 999S -1d` | .... the period from "Start of previous day" to "End of previous day" (see [Date time type](/v1/docs/en/date-date-time-value-type)). | | `TOMORROW` | **Next day** | `0h 0m 0s 0S +1d` | `23h 59m 59s 999S +1d` | ... the period from "Start of next day" to "End of next day" (see [Date time type](/v1/docs/en/date-date-time-value-type)). | | **Calendar week (period)** | | `THIS_WEEK` | **Current week** | `0h 0m 0s 0S 1E` | `23h 59m 59s 999S 7E` | ... the period from "Start of week" to "End of week" (see [Date time type](/v1/docs/en/date-date-time-value-type)) | | `LAST_WEEK` | **Previous week** | `0h 0m 0s 0S -7d 1E` | `23h 59m 59s 999S -7d 7E` | ... the period from "Start of last week" to "End of last week" (see [Date time type](/v1/docs/en/date-date-time-value-type)). | | `NEXT_WEEK` | **Next week** | `0h 0m 0s 0S +7d 1E` | `23h 59m 59s 999S +7d 7E` | ... the period from "Start of next week" to "End of next week" (see [Date time type](/v1/docs/en/date-date-time-value-type)). | | ***Calendar month (period)*** | | `THIS_MONTH` | **Current month** | `0h 0m 0s 0S 1d` | `23h 59m 59s 999S 1d +1M 0d` | ... the period from "Start of month" to "End of month" (see [Date time type](/v1/docs/en/date-date-time-value-type)). | | `LAST_MONTH` | **Previous month** | `0h 0m 0s 0S 1d -1M` | `23h 59m 59s 999S 0d` | ... the period from "Start of last month" to "End of last month" (see [Date time type](/v1/docs/en/date-date-time-value-type)) | | `NEXT_MONTH` | **Next month** | `0h 0m 0s 0S 1d +1M` | `23h 59m 59s 999S 1d +2M 0d` | ... the period from "Start of next month" to "End of next month" (see [Date time type](/v1/docs/en/date-date-time-value-type)) | | ***Calendar year (period)*** | | `THIS_YEAR` | **Current year** | `0h 0m 0s 0S 1d 1M` | `23h 59m 59s 999S 12M 31d` | ... the period from "Start of year" to "End of year" (see [Date time type](/v1/docs/en/date-date-time-value-type)). | | `LAST_YEAR` | **Previous year** | `0h 0m 0s 0S 1d 1M -1y` | `23h 59m 59s 999S 12M 31d -1y` | ... the period from "Start of last year" to "End of last year" (see [Date time type](/v1/docs/en/date-date-time-value-type)). | | `NEXT_YEAR` | **Next year** | `0h 0m 0s 0S 1d 1M +1y` | `23h 59m 59s 999S 12M 31d +1y` | ... the period from "Start of next year" to "End of next year" (see [Date time type](/v1/docs/en/date-date-time-value-type)). | | ***Quarter (period)*** | | `THIS_QUARTER` | **Current quarter** | `0h 0m 0s 0S +0q` | `23h 59m 59s 999S +0Q` | ... the period from "Start of quarter" to "End of quarter" (see [Date time type](/v1/docs/en/date-date-time-value-type)). | | `LAST_QUARTER` | **Previous quarter** | `0h 0m 0s 0S -1q` | `23h 59m 59s 999S -1Q` | ... the period from "Start of last quarter" to "End of last quarter" (see [Date time type](/v1/docs/en/date-date-time-value-type)). | | `NEXT_QUARTER` | **Next quarter** | `0h 0m 0s 0S +1q` | `23h 59m 59s 999S +1Q` | ... the period from "Start of next quarter" to "End of next quarter" (see [Date time type](/v1/docs/en/date-date-time-value-type)). | | ***Special time periods*** | | `IN_THE_PAST` | **In the past** | `0y 1M 1d 0H 0m 0s 0S` | `999S` | ... the time period from the *beginning of the time calculatio*n (see [Date time type](/v1/docs/en/date-date-time-value-type)) to the last millisecond of the current second (`999S`). | | `IN_THE_FUTURE` | **In the future** | `0S` | `9999y 12M 31d 23H 59m 59s 999S` | ... the time period from the first millisecond of the current second (`0S`) to the last millisecond of the year 9999. | | ***Freely definable*** | | `CUSTOM` | **Custom ...** | ** | ** | ... enables the definition of a "custom" pattern via the "time value" parameter in the [Relative date with time](/v1/docs/en/core-date-time-value) value resolver. | | ***System time*** | | `NOW` | **Now** | ** | ** | no pattern necessary ("Now" = *system time* without offset). | If required, custom "date range types" with specific "patterns" for **Start** and **End** can be added or, if necessary, existing ones can be removed. **CAUTION****:** The "patterns" for **Start** and **End** for predefined entries can basically be edited and so customized according to individual requirements. However, any change to a predefined expression immediately and globally affects all existing references, e.g. also in default filters of overviews or if the [Relative date range with time](/v1/docs/en/core-date-range-value) value resolver is used in criteria in the context of the [Search API](/v1/docs/en/common-search-api). This can have far-reaching consequences for the runtime behaviour of **Lobster Data Platform/Orchestration** as well as all Lobster_data profiles that use the [Search API](/v1/docs/en/common-search-api). If necessary, it is therefore advisable to assign *alternative* definitions from the default to *specially* added values for the calculation logic. Then, for each reference, there is a choice between the "*factory* default" and a "*custom* default"*.* If required, [Enumeration filters](/v1/docs/en/core-dynamic-enum-filter) can be used to restrict this selection, e.g. depending on [Defining association criteria](/v1/docs/en/core-association-criteria-definition).