---
title: "extended(minimumLength:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/date/formatstyle/symbol/year/extended(minimumlength:)"
---

# extended(minimumLength:)

Returns a custom format style that portrays the year of the calendar system, encompassing all supra-year fields.

## Declaration

```swift
static func extended(minimumLength: Int = 1) -> Date.FormatStyle.Symbol.Year
```

## Parameters

- `minimumLength`: The minimum length to display the full year.

## Return Value

Return Value A custom year format style that portrays the year of the calendar system with the provided minimum length.

## Discussion

Discussion The default length is the minimum needed to show the full year.

## See Also

### Modifying a Year

- [defaultDigits](foundation/date/formatstyle/symbol/year/defaultdigits.md)
- [twoDigits](foundation/date/formatstyle/symbol/year/twodigits.md)
- [padded(_:)](foundation/date/formatstyle/symbol/year/padded(_:).md)
- [relatedGregorian(minimumLength:)](foundation/date/formatstyle/symbol/year/relatedgregorian(minimumlength:).md)
