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

# defaultDigits

Custom week of the year format style showing the minimum number of digits that represents the year in week-of-year calendars.

## Declaration

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

## Discussion

Discussion This represents week-of-year values like 1 or 18.

## See Also

### Modifying a Year for Week-of-Year

- [twoDigits](foundation/date/formatstyle/symbol/yearforweekofyear/twodigits.md)
- [padded(_:)](foundation/date/formatstyle/symbol/yearforweekofyear/padded(_:).md)
