# ADDDAYS

The ADDDAYS function allows you to add or subtract a specified number of days from a given date.

## Syntax

```java
ADDDAYS(date,value)
//adds the value to the date and returns it
```

## Arguments

date - Date in any format. Required. This can also be a measure or a node reference.

value - Number to be added to the date. Required. Use a negative number to subtract the days from the given date.

## Return Value

Date.

## Example

<figure><img src="https://content.gitbook.com/content/sB9HAei8v4FfKkH9M4gw/blobs/B9zdEL5F9cpEwiWsatbC/image.png" alt=""><figcaption><p>ADDDAYS</p></figcaption></figure>

{% hint style="info" %}
You can also add or subtract days from a given date using the arithmetic operators.
{% endhint %}

<figure><img src="https://content.gitbook.com/content/sB9HAei8v4FfKkH9M4gw/blobs/nWCIkngdwGV95FxpLm3F/image.png" alt=""><figcaption><p>Using Arithmetic Operators on Dates</p></figcaption></figure>
