padded(_:)
Returns a custom format style that represents the three or more digits of the year in week-of-year calendars, zero-padded if necessary.
Declaration
static func padded(_ length: Int) -> Date.FormatStyle.Symbol.YearForWeekOfYearParameters
- length:
The length of the string to display a calendar year.
Return Value
A custom year format style that portrays the year of a week of year calendar system with the provided length.