<!--
{
  "documentType" : "article",
  "framework" : "TVML",
  "identifier" : "/documentation/TVML/locale",
  "metadataVersion" : "0.1.0",
  "role" : "article",
  "title" : "locale"
}
-->

# locale

Sets the locale for the date element.

## Overview

Here’s an example that sets the locale to Thai, which uses the Buddhist calendar.
The date displayed is January 19, 2031 based on the [format](/documentation/TVML/format)
attribute.

```xml
<date format="MMMM dd, yyyy" locale="th_TH">2574-01-19</date>
```

### Values for locale

- `<language>_<country>`: The locale format the date is in.

### Elements that Use locale

- [date](/documentation/TVML/date)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)