---
title: twoDigits
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/date/formatstyle/symbol/day/twodigits
---

# twoDigits

Custom format style portraying the two-digit numeric day of month, zero-padded if necessary.

## Declaration

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

## Discussion

Discussion This style produces 01 for the first day of the month and 18 for the eighteenth. To use single digits when possible, use defaultDigits.

## See Also

### Modifying a Day Format

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