# DATEADD() Function

### Description

Adds a specified number of time units to a date or timestamp. Subtract by providing a negative value.

### Syntax

```sql
DATEADD(datepart, value, timestamp)
```

### Parameters

| Parameter | Description | Data Type | Required |
| --- | --- | --- | --- |
| _unit_ | Date or time part (for example day, month, year) | String Literal | Yes |
| _amount_ | The amount argument | Integer | Yes |
| _date\_or\_timestamp_ | Date or timestamp value | Date or timestamp | Yes |

#### Accepted datepart values

| Datepart Name | Datepart Abbreviation |
| --- | --- |
| year | yy, yyyy |
| month | mm, m |
| day | dd, d |
| hour | hh |
| minute | mi, n |
| second | ss, s |

#### Notes

-   Unit must be string literal.

### Example

```sql
SELECT
    DATEADD('day', 7, start_date)
FROM
    rippling.employee.Employee
LIMIT
    5;
```

Source: https://developer.rippling.com/documentation/rippling-platform/transformations/sql-reference/dateadd

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
