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

# relatedGregorian(minimumLength:)

Returns a custom format style that portrays the year of a non-Gregorian calendar system in the corresponding Gregorian year.

## Declaration

```swift
static func relatedGregorian(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 For non-Gregorian calendars, output corresponds to the extended Gregorian year in which the calendar’s year begins. 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)
- [extended(minimumLength:)](foundation/date/formatstyle/symbol/year/extended(minimumlength:).md)
