---
title: defaultDigits
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/date/formatstyle/symbol/year/defaultdigits
---

# defaultDigits

The custom year format style showing the minimum number of digits that represents the numeric year.

## Declaration

```swift
static var defaultDigits: Date.FormatStyle.Symbol.Year { get }
```

## Discussion

Discussion This style represents years like 1, 18, 202, and 2020.

## See Also

### Modifying a Year

- [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)
- [extended(minimumLength:)](foundation/date/formatstyle/symbol/year/extended(minimumlength:).md)
