> ## 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.

# CASCADEDATEINTERVAL

> The CASCADEDATEINTERVAL function calculates the number of days between the start and end dates in a date range picker component. It is available across multiple YiDA scenarios, including Form, workflow design, and integration & automation. Given a timestamp parameter, it returns the day difference between two dates.

## Supported Product Scenarios

The CASCADEDATEINTERVAL 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

## Format

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
CASCADEDATEINTERVAL(timestamp)
```

## Attributes

| **Attribute** | **Required** | **Description**           |
| ------------- | ------------ | ------------------------- |
| timestamp     | Yes          | The date range component. |

## Return Value

| **Return type** | **Description**                                             |
| --------------- | ----------------------------------------------------------- |
| Number          | The number of days between the two dates in the date range. |

## Example

As shown below, use the `CASCADEDATEINTERVAL()` function to return the number of days between the two dates in a date range.

## Try It Out

Calculate the number of days between the start and end dates in a date range picker component.
