year(_:)
Change the representation of the year in the format.
Declaration
func year(_ format: Date.FormatStyle.Symbol.Year = .defaultDigits) -> Date.FormatStyle.AttributedParameters
- format:
Set the symbol representation or pass
nilto remove it.
Change the representation of the year in the format.
func year(_ format: Date.FormatStyle.Symbol.Year = .defaultDigits) -> Date.FormatStyle.AttributedSet the symbol representation or pass nil to remove it.