# DAYS

### Description

`DAYS` takes two dates, from either an information or in [ISO8601 format](/rule-language/operators/date-operators.md), and returns the difference between them in days.

If you are looking for the difference in weekdays, use the [`WEEKDAYS`](https://github.com/atfinity/docs-atfinity-io/blob/master/rule-language/operators/date-operators/days-1.md) operator.

### Example

```
DAYS('2022-01-01', '2022-01-11')
```

This returns `10`, as the difference between 1st January 2022 and 11th January 2022 is ten days.

This operator can also be used in combination with other operators like [`TODAY`](/rule-language/operators/date-operators/today.md) or [`NOW`](/rule-language/operators/date-operators/now.md).

```
DAYS('2022-01-01', TODAY())
```


---

# 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.atfinity.io/rule-language/operators/date-operators/days.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.
