# SOYEAR

The SOYEAR function takes the date as input and returns the year's starting date. Node references and measures are also accepted as input arguments. Use [DATE.SET()](https://docs.inforiver.com/~/changes/mS6jwvARNLHpKqBa4cT9/formula-syntax/date-functions/date.set) to set the format of the output date.

## Syntax <a href="#syntax" id="syntax"></a>

```java
SOYEAR(date)
```

## Arguments <a href="#arguments" id="arguments"></a>

date - The date that is passed as an input to the function. Required.

## Return value <a href="#return-value" id="return-value"></a>

Date representing the start of the year.

## Example <a href="#example" id="example"></a>

```java
SOYEAR("05/29/2024")
//Returns 1/1/2024
```

<figure><img src="/files/wrSPgZ5dQ1jaM2w9fqji" alt=""><figcaption><p>Starting of the Year</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.fabricplan.com/planning-sheets/formula-syntax/date-functions/soyear.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
