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

# YEAR

> The YEAR function returns the year of a specified date. It is supported across multiple YiDA scenarios, including Form and workflow design. Given a date parameter, it returns the corresponding year as a Number.

The **YEAR** function returns the year of a specified date.

## Supported Scenarios

The YEAR 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 and automation
* Workflow nodes
* Connector

## Syntax

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

## Attributes

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

## Return Value

| **Return type** | **Description**       |
| --------------- | --------------------- |
| Number          | The year of the date. |

## Example

As shown below, use the `MONTH()` function to get the month from the date selected by the user.

## Try It

Returns the month of a given date as an integer between 1 and 12.
