---
title: dropMiddle
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/datecomponentsformatter/zeroformattingbehavior-swift.struct/dropmiddle
---

# dropMiddle

The drop middle zero units behavior. Units whose values are 0 are dropped from anywhere in the middle of a sequence. For example, when days, hours, minutes, and seconds are allowed, the abbreviated version of one hour, zero minutes, and five seconds is displayed as “0d 1h 5s”.

## Declaration

```swift
static var dropMiddle: DateComponentsFormatter.ZeroFormattingBehavior { get }
```

## See Also

### Constants

- [default](foundation/datecomponentsformatter/zeroformattingbehavior-swift.struct/default.md)
- [dropLeading](foundation/datecomponentsformatter/zeroformattingbehavior-swift.struct/dropleading.md)
- [dropTrailing](foundation/datecomponentsformatter/zeroformattingbehavior-swift.struct/droptrailing.md)
- [dropAll](foundation/datecomponentsformatter/zeroformattingbehavior-swift.struct/dropall.md)
- [pad](foundation/datecomponentsformatter/zeroformattingbehavior-swift.struct/pad.md)
