# SOWEEK

The SOWEEK function takes the date as input and returns the starting date of the week. Node references and measures are also accepted as input arguments. Use [DATE.SET()](/planning-sheets/formula-syntax/date-functions/date.set.md) to set the format of the output date.

## Syntax

```java
SOWEEK(date)
```

## Arguments

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

## Return value

Date representing the start of the week.

## Example

```java
SOWEEK("05/29/2024")
//Returns 27/5/2024
```

<figure><img src="/files/KxFCoAIpAYj5bXAAbUhy" alt=""><figcaption><p>Starting of the week</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/soweek.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.
