Skip to content

Type Property_StringProcessing

iso8601Components

iOS 26.0+ iPadOS 26.0+ Mac Catalyst 26.0+ macOS 26.0+ tvOS 26.0+ visionOS 26.0+ watchOS 26.0+
Creates a regex component to match an ISO 8601 date and time, such as “2015-11-14’T’15:05:03’Z’”, and capture the string as a DateComponents using the time zone as specified in the string.
static var iso8601Components: DateComponents.ISO8601FormatStyle { get }