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

# NOW

> NOW函数用于获取当前时间，并支持在宜搭的多种场景中使用，如表单、流程设计等。该函数返回一个日期对象，可用于将当前时间赋值给日期组件。

**NOW**函数用于获取当前时间。

## 支持产品场景

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

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

## 格式

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

## 返回值

| **返回值类型** | **说明**    |
| --------- | --------- |
| 日期对象      | 返回当前时间对象。 |

## 使用示例

如下图所示，你可以使用`NOW()`函数将当前时间赋值给**日期组件**。

<Frame>
  ![](https://yida-support.oss-cn-shanghai.aliyuncs.com/static/png/1703065679615-b75fceda-6f04-4fba-8679-f2c54f2ee2be.png)
</Frame>

## 体验

返回当前时间，与`TODAY`函数效果相同。
