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

# Ajouter à une date

> Ajouter du temps à une date

## Présentation

La transformation `add-to-date` ajoute une durée spécifiée à une date.

## Syntaxe

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
add-to-date(<date-variable>, <amount-variable>, unit="days")
```

## Paramètres

| Paramètre         | Type   | Requis | Description                                                                                               |
| ----------------- | ------ | ------ | --------------------------------------------------------------------------------------------------------- |
| `date-variable`   | date   | Oui    | La date à laquelle ajouter du temps                                                                       |
| `amount-variable` | number | Oui    | La quantité de temps à ajouter                                                                            |
| `unit`            | string | Non    | Unité de temps : `"milliseconds"`, `"seconds"`, `"minutes"`, `"hours"`, `"days"`, `"months"` ou `"years"` |
| `inputLocale`     | string | Non    | Locale utilisée pour analyser la date d'entrée : `"pt"`, `"nl"`, `"en"`, `"de"`, `"ja"`, `"zh"` ou `"fr"` |

## Exemples

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
add-to-date(<date-variable>, <amount-variable>, unit="days")
add-to-date(<date-variable>, <amount-variable>, unit="hours", inputLocale="fr")
```
