# DateAdd

The **DateAdd** function adds a specified amount of time to a date.

### Syntax

```
DateAdd(unit, amount, date)
```

Function arguments:

|            |                                                                                                      |
| ---------- | ---------------------------------------------------------------------------------------------------- |
| **unit**   | (required) The unit of time to add (i.e., year, quarter, month, week, day, hour, minute, or second). |
| **amount** | (required) The number of units to add.                                                               |
| **date**   | (required) The date value or column of date values to which the function adds time.                  |

### Examples

```
DateAdd("minute", 60, Date("1999-12-31 23:00:00"))
```

Adds 60 minutes to the specified date and returns `2000-01-01 00:00:00`.

```
DateAdd(“day”, 7, [Date])
```

Adds seven days to every date in the *Date* column.

```
DateAdd(“year”, -1, [Date])
```

Subtracts one year from every date in the *Date* column.


---

# 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://support.meetuma.ai/uma-knowledgebase/data-and-reporting/analytics-pro/functions/date-functions/dateadd.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.
