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

# twoDigits

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

## Declaration

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

## Discussion

Discussion For example, 01, 18, 317.

## See Also

### Modifying a Day of Year Value

- [defaultDigits](foundation/date/formatstyle/symbol/dayofyear/defaultdigits.md)
- [threeDigits](foundation/date/formatstyle/symbol/dayofyear/threedigits.md)
