# Time range

When you using CDP 365, Time range usually appear throughout system features

## Time range

Time range helps you to set filters or set conditions to retrieve data in the desired time period

### Custom

With Custom Time range type, the retrieved data will be fixed according to the period time you choose&#x20;

To select Custom Time range type, proceed following steps:

1. Select Custom
2. Choose start date and end date
3. Click Apply

![](/files/vd0h7uJbw8gDKD8QeAOG)

{% hint style="info" %}
Note: start and end dates may overlap

For example, you choose a start and end date that are both 14/02/2022. The results will be the data of 14/02/2022
{% endhint %}

### Today

With Time range type is Today, the retrieved data will be the data of the current date

![](/files/98HzRezZ4clC34W9rfOG)

#### Compare Today and Custom (with the same start and end dates)&#x20;

Date of first calculation: 17/02/2022

* Computation schedule: every 2 days
* Custom Time range: choose the same start and end date on 17/02/2022
* Today Time range: 17/02/2022

Results of recalculation date: 19/02/2022&#x20;

* Custom Time range: It will be the data of 17/02/2022
* Today Time range: It will be the data of 19/02/2022

Therefore, you can find the difference between the 2 types of Time range: Custom is a fixed date, Today is a flexible date. Today's date value is the date of the data recalculation

### Yesterday

With Yesterday Time range type, the retrieved data will be the data of the previous 1 day (calculated based on the current day)

![](/files/2b4GlhmCh35ke0upBWfA)

### This week

With This week Time range type, the retrieved data will be the data of the days of the week (Calculated from the week of the current date)

There are two options for the start of the week, Monday to Today or Sunday to today. It depends on the first day of the week standard of each country that you need to install

{% hint style="info" %}
Note: This week is also a dynamic Time-range type. The value of Today will be the current date
{% endhint %}

![](/files/To4CmkgmoXhnIFeFDXur)

### Last 7 days

With the Last 7 days Time range type, the retrieved data will be the data of the last 7 days (calculated from the current date)

{% hint style="info" %}
Note: Last 7 days Time range type does not include the data of the current date
{% endhint %}

![](/files/aney3G1waFdw3yFO7PFF)

### Last week

With the Last week Time range type, the retrieved data will be the data of the days of 1 previous week (calculated from the current week)

There are two options for the start of the week, Monday to Sunday or Sunday to Saturday. It depends on the first day of the week standard of each country that you need to install

![](/files/NZsDZGVv8bbl1mbW16tJ)

### Last 14 days

With the Last 14 days Time range type, the retrieved data will be the data of the last 14 days (calculated from the current date)

{% hint style="info" %}
Note: Last 14 days Time range type does not include the data of the current date
{% endhint %}

![](/files/ZzWs69ChsWvoDMJ3KwU7)

### This month

With This month Time range type, the retrieved data will be the data of the days of the month (calculated from the month of the current date)

{% hint style="info" %}
Note: This month Time range type includes the data of the current date
{% endhint %}

![](/files/Yus4LIkFCIOUrAokDDmF)

### Last 30 days

With the Last 30 days Time range type, the retrieved data will be the data of the last 30 days (calculated from the current date)

{% hint style="info" %}
Note: Last 30 days Time range type does not include the data of the current date
{% endhint %}

![](/files/zAyGLT54tHn6nqAfudDM)

### Last month

With the Last month Time range type, the retrieved data will be the data of the previous 1 month (calculated from the month of the current month)

![](/files/qWpCD4x67kRMeyznz7ne)

### This quarter

With This quarter Time range type, the retrieved data will be the data of this quarter (calculated from the quarter of the current date)

![](/files/B1nEkGTTYP7cLEWoWYei)

### Last quarter

With the Last quarter Time range type, the retrieved data will be the previous 1 quarter calculated from the quarter of the current date

![](/files/8ny20fvU5zP1ynAJj32t)

### All-time

With the All time Time range type, the retrieved data will be the whole period time of data

![](/files/ipYofTBSMHIS5xXsJBXF)

### Up to today

With Up to today Time range type, the data is retrieved from the current date back to  the number of days (you have to enter the number) calculated form the current date&#x20;

Example: You set the Computation Schedule on 18/02/2022 with the condition is 9 day(s), up to today&#x20;

Thus, the collected data process starts on 10/02/2022

![](/files/rKZfpJWdvNsnRf5z7TEP)

### Up to yesterday

With the Up to yesterday Time range type, the data is retrieved from the previous date of Today back to the number of days (You have to enter the number) calculated from the current day

Example: You set the Computation Schedule on 18/02/2022 with the condition is 10 day(s), up to yesterday&#x20;

Thus, the collected data process starts on 08/02/2022 to 17/02/2022

![](/files/TENcsC92AAxfTXwPxgYv)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.antsomi.com/cdp-365-user-guide-en/annotation/time-range.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
