> ## 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.

# Parse Date

> Analyser une chaîne de date en date ISO

## Présentation

La transformation `parse-date` analyse une chaîne de date et la convertit en chaîne de date ISO 8601.

## Syntaxe

```text theme={"theme":{"light":"github-light","dark":"github-dark"}}
parse-date(<variable>)
```

## Paramètres

| Paramètre        | Type    | Requis | Description                                                                                               |
| ---------------- | ------- | ------ | --------------------------------------------------------------------------------------------------------- |
| `variable`       | string  | Oui    | La chaîne de date à analyser                                                                              |
| `useCurrentYear` | boolean | Non    | Lorsque true, remplace l'année analysée par l'année en cours                                              |
| `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"}}
parse-date(<variable>)
parse-date(<variable>, inputLocale="fr")
parse-date(<variable>, useCurrentYear=true)
```
