Type Method_StringProcessing
iso8601Date(timeZone:dateSeparator:)
iOS 16.0+
iPadOS 16.0+
Mac Catalyst 16.0+
macOS 13.0+
tvOS 16.0+
watchOS 9.0+
Creates a regex component to match an ISO 8601 date string, such as “2015-11-14”, and capture the string as a
Date. The captured Date would be at midnight in the specified timeZone.static func iso8601Date(timeZone: TimeZone, dateSeparator: Date.ISO8601FormatStyle.DateSeparator = .dash) -> Self
Parameters
timeZoneThe time zone to create the captured
Datewith.dateSeparatorThe separator between date components.
Return Value
A RegexComponent to match an ISO 8601 date string, not any time zone that may be in the string.