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

> DAY函数用于获取选定时间为当月第几日，支持在宜搭的多种场景中使用，如表单、流程设计和集成自动化等。通过DAY(date)格式调用，返回值为1到31之间的数字，代表日期天数。

**DAY**函数用于获取选定时间为当月第几日。

## 支持产品场景

DAY函数支持在宜搭的以下场景中使用。

* 表单（主表字段）
* 表单（业务关联规则）
* 表单（校验）
* 流程设计（校验规则）
* 流程设计（关联操作）
* 集成自动化
* 流程-节点
* 连接器

## 格式

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

## 属性说明

| **属性** | **是否必填** | **说明** |
| ------ | -------- | ------ |
| date   | 是        | 时间对象。  |

## 返回值

| **返回值类型** | **说明**             |
| --------- | ------------------ |
| 数字        | 返回日期天数，范围为 1 ～ 31。 |

## 使用示例

如下图所示，你可以使用`DAY()`函数获取用户选择的时间，是当月的第几天。

<Frame>
  ![](https://yida-support.oss-cn-shanghai.aliyuncs.com/static/png/1703069770016-261cbeb6-f74f-4eae-a3e3-6181a43a9c82.png)
</Frame>

## 体验

回某日期的天数， 天数是介于 1 到 31 之间的整数。
