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

# dropTrailing

The drop trailing zero units behavior. Units whose value is 0 are dropped starting at the end of the sequence. For example, when days, hours, minutes, and seconds are allowed, the abbreviated version of one hour is displayed as “0d 1h”.

## Declaration

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

## See Also

### Constants

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