[Layouts](https://www.cv-transformer.com/ja-JP/docs/layouts) [Date formatting](https://www.cv-transformer.com/ja-JP/docs/layouts/date-formatting)

# Date formatting

1 分で読めます

Date variables in a layout can be formatted with options between parentheses, separated by semicolons. Date ranges take the same options.

## [Examples](#examples)

For a variable `date` with the value `2025-02-20`:

| Template | Result |
| --- | --- |
| `{{date(year: numeric; month: long; day: numeric)}}` | February 20th, 2025 |
| `{{date(year: 2-digit; month: short)}}` | Feb '25 |
| `{{date(month: long; day: numeric)}}` | February 20th |

## [Options](#options)

- `year`: `numeric`, `2-digit`
- `month`: `numeric`, `2-digit`, `long`, `short`, `narrow`
- `day`: `numeric`, `2-digit`

[前へConditional content](https://www.cv-transformer.com/ja-JP/docs/layouts/conditions) [次のページAnonymization](https://www.cv-transformer.com/ja-JP/docs/layouts/anonymization)
