> ## Documentation Index
> Fetch the complete documentation index at: https://help.dingtalk.io/llms.txt
> Use this file to discover all available pages before exploring further.

# DAYS

> The DAYS function calculates the number of days between two dates. It is supported in various YiDA scenarios, including Form, workflow design, and integration & automation. By providing the end date and start date as date objects, this function returns the difference in days between them.

The **DAYS** function calculates the number of days between two dates.

## Supported Product Scenarios

The DAYS function is supported in the following YiDA scenarios:

* Form (main table fields)
* Form (business association rules)
* Form (validation)
* Workflow design (validation rules)
* Workflow design (association actions)
* Integration & automation
* Workflow - Node
* Connector

## Syntax

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
DAYS(end_date,start_date)
```

## Attribute Description

| **Attribute** | **Required** | **Description**                              |
| ------------- | ------------ | -------------------------------------------- |
| end\_date     | Yes          | The date object representing the end date.   |
| start\_date   | Yes          | The date object representing the start date. |

## Return Value

| **Return value type** | **Description**                                 |
| --------------------- | ----------------------------------------------- |
| Number                | The number of days between the specified dates. |

## Example

As shown in the figure below, use the `DAYS()` function to get the number of days between two dates.

## Try It Out

Returns the number of days between two dates.
