<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Date/FormatStyle/Symbol/Year/relatedGregorian(minimumLength:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation4DateV11FormatStyleV6SymbolV4YearV16relatedGregorian13minimumLengthAISi_tFZ"
  },
  "title" : "relatedGregorian(minimumLength:)"
}
-->

# relatedGregorian(minimumLength:)

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

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

## Parameters

`minimumLength`

The minimum length to display the full year.

## Return Value

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

## 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.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)