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

# format

Specifies how a date is displayed.

## Overview

Here’s an example that sets the date to January 19, 2031.

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

### Values for format

- String: The format for the date string.

### Elements that Use format

- [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)