---
title: DateIntervalFormatter.Style.medium
framework: foundation
role: symbol
role_heading: Case
path: foundation/dateintervalformatter/style/medium
---

# DateIntervalFormatter.Style.medium

A medium length date or time format.

## Declaration

```swift
case medium
```

## Discussion

Discussion For dates, this style displays the numerical day and year and an abbreviated spelling of the month using a format appropriate for the current locale. For example, formatting the date January 15, 2015 with this style results in the value “Jan 15, 2015” for US English and the value “15. Jan. 2015” for German. For times, this style displays hours, minutes, and seconds using a format appropriate for the current locale. For example, 12 hours, 33 minutes, and 29 seconds in the afternoon using a 12-hour clock results in the value “12:33:29 PM” for US English 12-hour format and “12:33:29 nachm.” for German.

## See Also

### Constants

- [DateIntervalFormatter.Style.none](foundation/dateintervalformatter/style/none.md)
- [DateIntervalFormatter.Style.short](foundation/dateintervalformatter/style/short.md)
- [DateIntervalFormatter.Style.long](foundation/dateintervalformatter/style/long.md)
- [DateIntervalFormatter.Style.full](foundation/dateintervalformatter/style/full.md)
