Type PropertyFoundationInternationalization
twoDigitsNoAMPM
iOS 15.0+
iPadOS 15.0+
Mac Catalyst 15.0+
macOS 12.0+
tvOS 15.0+
watchOS 8.0+
Custom format style portraying the numeric hour using two digits.
static var twoDigitsNoAMPM: Date.FormatStyle.Symbol.Hour { get }
Discussion
This style pads the hour with a leading zero if necessary. It doesn’t include the day period symbol (a.m. or p.m.). For example, 01, 11.