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

# twoDigits

The custom format style that conveys a two-digit numeric second, zero-padded if necessary.

## Declaration

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

## Discussion

Discussion This style represents the seconds field like 01 or 18.

## See Also

### Modifying a Second

- [defaultDigits](foundation/date/formatstyle/symbol/second/defaultdigits.md)
