withYear
Declaration
static var withYear: ISO8601DateFormatter.Options { get }Discussion
The date representation includes the year. The format for year is inferred based on the other specified options.
If withWeekOfYear is specified,
YYYYis used.Otherwise,
yyyyis used.