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

# YEARBEGIN

> The YEARBEGIN function sets a specified date to the start of its year. It is supported in various YiDA scenarios, including forms and workflow design.

The **YEARBEGIN** function sets a specified date to the start of its year, that is, `xxxx-01-01 00:00:00`.

## Supported Product Scenarios

The YEARBEGIN function is supported in the following YiDA scenarios.

* Form (main table field)
* Form (business association rule)
* Form (validation)
* Workflow design (validation rule)
* Workflow design (association action)
* Integration and automation
* Workflow node
* Connector

## Format

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

## Attribute Description

| **Attribute** | **Required** | **Description**                                                   |
| ------------- | ------------ | ----------------------------------------------------------------- |
| timestamp     | Yes          | The timestamp of the date. You can use a date component directly. |

## Return Value

| **Return value type** | **Description**                                                                             |
| --------------------- | ------------------------------------------------------------------------------------------- |
| timestamp             | The timestamp of the first day of the year. You can assign it directly to a date component. |

## Usage Example

As shown below, use the `YEARBEGIN()` function to get the start of the year for a given date, that is, `xxxx-01-01 00:00:00`.

## Try It

Get the first day of the year for the given date.
