# EOQTR

The EOQTR function takes the date as input and returns the ending date of the quarter. 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.

Optionally, you can specify an offset for the return date, which may be a positive or negative number. Additional quarters are added to or subtracted from the end date depending on the offset value.

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

```java
EOQTR(date)
EOQTR(date,offset)
```

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

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

offset - Number of quarters to be added to or subtracted from the end date of the month. Optional.

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

Date representing the end of the quarter.

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

```java
EOQTR("05/29/2024")
//Returns 30/6/2024
EOQTR("05/29/2024",1)
//Returns 30/9/2024, adding 1 more quarter to 30/6/2024
```

<figure><img src="/files/fCNWTV7Li2kH1cU0cnTO" alt=""><figcaption><p>Ending day of the Quarter</p></figcaption></figure>

<figure><img src="/files/Ju6HqprjX1lSyU3fMhF6" alt=""><figcaption><p>Ending day of the next quarter</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/eoqtr.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.
