---
title: "minute(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/date/formatstyle/minute(_:)"
---

# minute(_:)

Modifies the date format style to use the specified minute format style.

## Declaration

```swift
func minute(_ format: Date.FormatStyle.Symbol.Minute = .defaultDigits) -> Date.FormatStyle
```

## Parameters

- `format`: The minute format style applied to the date format style.

## Return Value

Return Value A date format style modified to include the specified minute style.

## Discussion

Discussion Values of Date.FormatStyle.Symbol.Minute are defaultDigits and twoDigits. This example shows a variety of Date.FormatStyle.Symbol.Minute format styles applied to a date: let meetingDate = Date() // Feb 9, 2021 at 3:05 PM meetingDate.formatted(Date.FormatStyle().minute(.defaultDigits)) // 5 meetingDate.formatted(Date.FormatStyle().minute(.twoDigits)) // 05 meetingDate.formatted(Date.FormatStyle().minute()) // 5 If you don’t provide a format, the defaultDigits static variable is the default format. For more information about formatting dates, see Date.FormatStyle.

## See Also

### Specifying the Time Format

- [hour(_:)](foundation/date/formatstyle/hour(_:).md)
- [second(_:)](foundation/date/formatstyle/second(_:).md)
- [secondFraction(_:)](foundation/date/formatstyle/secondfraction(_:).md)
- [timeZone(_:)](foundation/date/formatstyle/timezone(_:).md)
- [Date.FormatStyle.TimeStyle](foundation/date/formatstyle/timestyle.md)
