# Date locale in Jira Automation: syntax and examples

URL: https://goingstellar.ro/reference/smart-values/date-locale/

Dates print in US English by default. Put locale("fr") or withLocale("fr") in front of a format to get month and weekday names in that language and the local order of the parts. You can pass a literal locale or a value such as the reporter's locale.

## Syntax

```
{{issue.created.locale("de").fullDate}}
{{issue.created.withLocale("fr").asLongDateTime}}
{{issue.created.locale(issue.reporter.locale).longDateTime}}
```

## Arguments

- `locale` (required: yes): A Java locale such as fr, fr_CA or pt_BR, in quotes, or a value such as issue.reporter.locale

## Works on

- Fields: any date or date-time value
- Returns: a date value in that locale; add a format after it

## Examples

```
{{issue.created.locale("de").fullDate}}
```

Prints the full date for German-speaking customers, with the weekday in German.

Result:

```
Sonntag, 29. November 2026
```

Run on Jira Cloud on 29 Nov 2026.

```
{{issue.created.withLocale("es").longDate}}
```

Gives a Spanish long date; withLocale() and locale() behave the same.

Result:

```
29 de noviembre de 2026
```

Run on Jira Cloud on 29 Nov 2026.

```
{{issue.created.locale("fr").format("EEEE d MMMM")}}
```

Combines a locale with your own pattern for a French sentence such as dimanche 29 novembre.

Result:

```
dimanche 29 novembre
```

Run on Jira Cloud on 29 Nov 2026.

```
{{issue.created.locale("fr").dayOfWeekName}}
```

Returns only the weekday name in French.

Result:

```
dimanche
```

Run on Jira Cloud on 29 Nov 2026.

```
{{issue.created.locale("ja").mediumDate}}
```

Shows how the order of year, month and day follows the locale.

Result:

```
2026/11/29
```

Run on Jira Cloud on 29 Nov 2026.

```
{{issue.created.locale(issue.reporter.locale).longDateTime}}
```

Uses the reporter's profile locale, so each person sees their own format.

Result:

```
November 29, 2026, 4:06:13 PM UTC
```

Run on Jira Cloud on 29 Nov 2026.

## Pitfalls

- The locale must come before the format. `{{issue.created.longDate.locale("fr")}}` renders empty because longDate has already turned the date into text (checked on Jira Cloud, November 2026).
- An unknown locale is not an error. `locale("xx_YY")` printed 2026 Nov 29, so a typo gives a plausible date in the wrong style (checked on Jira Cloud, November 2026).
- `locale("fr").monthOfYear` rendered empty, while `dayOfWeekName` was translated. For a translated month name use a pattern, as in `format("MMMM")`.
- Both `fr_CA` and `fr-CA` worked in the checks and gave the French date, so the separator is not what makes a locale fail.

## Related

- [Date formats (jiraDate, format(), shortTime…)](https://goingstellar.ro/reference/smart-values/date-format/)
- [setTimeZone() and convertToTimeZone()](https://goingstellar.ro/reference/smart-values/date-timezone/)
- [dayOfMonth, dayOfWeekName and other date attributes](https://goingstellar.ro/reference/smart-values/date-attributes/)
- [{{now}}](https://goingstellar.ro/reference/smart-values/now/)
- [{{assignee}}, {{reporter}}, {{creator}}, {{initiator}}](https://goingstellar.ro/reference/smart-values/user-smart-values/)

## Sources

- [Use smart values to manipulate and format dates (Atlassian Support)](https://support.atlassian.com/cloud-automation/docs/examples-of-using-smart-values-with-dates/)

