formatOptions
Options for generating and parsing ISO 8601 date representations. See Options for possible values.
Declaration
var formatOptions: ISO8601DateFormatter.Options { get set }Discussion
The ISO 8601 specification allows for dates to be expressed in a variety of ways. You can configure the format used to parse and generate representations by specifying various combinations of format options.
Format | Example | Options |
|---|---|---|
Date with dash separators |
| |
Rfc3339 Date and Time |
| |
Date and Time with space separator between date and time |
| |
Week of Year |
| |
Week of Year with Ordinal Weekday |
| |
Ordinal Day of Year |
|