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

# defaultDigits

Custom format style portraying the minimum number of digits that represents the numeric day of month.

## Declaration

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

## Discussion

Discussion This style produces 1 for the  first day of the month and 18 for the eighteenth. To force two-digit display in all cases, use twoDigits.

## See Also

### Modifying a Day Format

- [ordinalOfDayInMonth](foundation/date/formatstyle/symbol/day/ordinalofdayinmonth.md)
- [twoDigits](foundation/date/formatstyle/symbol/day/twodigits.md)
- [julianModified(minimumLength:)](foundation/date/formatstyle/symbol/day/julianmodified(minimumlength:).md)
