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

# DAY

> The DAY function returns the day of the month for a given date. It is supported across multiple YiDA scenarios, including Form, workflow design, and integration & automation. Called in the format DAY(date), it returns an integer between 1 and 31 that represents the day of the month.

The **DAY** function returns the day of the month for a given date.

## Supported Scenarios

The DAY function is supported in the following YiDA scenarios:

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

## Format

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
DAY(date)
```

## Attribute Description

| **Attribute** | **Required** | **Description**  |
| ------------- | ------------ | ---------------- |
| date          | Yes          | The date object. |

## Return Value

| **Return type** | **Description**                                       |
| --------------- | ----------------------------------------------------- |
| Number          | The day of the month, as an integer between 1 and 31. |

## Example

As shown below, use the `DAY()` function to return the day of the month for a date selected by the user.

## Try It

Returns the day of a given date as an integer between 1 and 31.
