ISO8601Format(_:)
Generates a locale-aware string representation of a date using the ISO 8601 date format.
Declaration
func ISO8601Format(_ style: Date.ISO8601FormatStyle = .init()) -> StringParameters
- style:
A customized Iso8601formatstyle to apply. By default, the method applies an unmodified ISO 8601 format style.
Return Value
A string, formatted according to the specified style.
Discussion
Calling this method is equivalent to passing a Date.ISO8601FormatStyle to a date’s formatted() method.