# SOMONTH

The SOMONTH function takes the date as input and returns the starting date of the month. 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
SOMONTH(date)
```

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

date - The date which 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 month.

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

```java
SOMONTH("05/29/2024")
//Returns 1/5/2024
```

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FvkPOTfQLyABalzYgsnAM%2Fimage.png?alt=media&#x26;token=bc5aad4a-9ce9-4f2f-9f65-ee54d62689fd" alt=""><figcaption><p>SOMONTH</p></figcaption></figure>
