> ## Documentation Index
> Fetch the complete documentation index at: https://www.integrate.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ETL: AddDuration

> Add a duration string expression to a datetime value and return the resulting datetime. Use ADDDURATION for date arithmetic in ETL pipelines.

## Description

Returns the result of a datetime\_expression plus a duration string expression.

## Syntax

`AddDuration(datetime_expression, duration)`

## Arguments

*datetime\_expression* - datetime expression.

*duration* - duration string in ISO 8601 format. See [https://en.wikipedia.org/wiki/ISO\_8601#Durations](https://en.wikipedia.org/wiki/ISO_8601#Durations)

## Examples

`AddDuration(ToDate('2013-09-10T08:02:31.667Z'),'PT3M')`returns '2013-09-10T08:05:31.667Z'

## Return value datatype

DateTime

## Impact of null value

If input is null, returns null.
