Type PropertyFoundationEssentials
iso8601
iOS 15.0+
iPadOS 15.0+
Mac Catalyst 15.0+
macOS 12.0+
tvOS 15.0+
watchOS 8.0+
A style for formatting a date in accordance with the ISO-8601 standard.
static var iso8601: Date.ISO8601FormatStyle { get }
Discussion
Use the dot-notation form of this type property when the call point allows the use of Date.ISO8601FormatStyle; in other words, when the value type is Date. Typically, you use this with the formatted(_:) method of Date.