<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Date/FormatStyle/Symbol/Minute",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation4DateV11FormatStyleV6SymbolV6MinuteV"
  },
  "title" : "Date.FormatStyle.Symbol.Minute"
}
-->

# Date.FormatStyle.Symbol.Minute

A type that specifies the format for the minutes in a date format style.

```
struct Minute
```

## Overview

The type [`Date.FormatStyle.Symbol.Minute`](/documentation/Foundation/Date/FormatStyle/Symbol/Minute) includes static factory variables that create custom [`Date.FormatStyle.Symbol.Minute`](/documentation/Foundation/Date/FormatStyle/Symbol/Minute) objects:

|Factory variable                                                                                    |Description                                                                              |
|----------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------|
|``doc://com.apple.foundation/documentation/Foundation/Date/FormatStyle/Symbol/Minute/defaultDigits``|The minimum number of digits that represents the  numeric minute. For example, `1`, `18`.|
|``doc://com.apple.foundation/documentation/Foundation/Date/FormatStyle/Symbol/Minute/twoDigits``    |Two-digit numeric minute, zero-padded if necessary. For example, `01`, `18`.             |

To customize the minute format in a string representation of a `Date`, use [`minute(_:)`](/documentation/Foundation/Date/FormatStyle/minute(_:)). The following example shows a variety of [`Date.FormatStyle.Symbol.Minute`](/documentation/Foundation/Date/FormatStyle/Symbol/Minute) format styles applied to a date.

```swift
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 no format is specified as a parameter, the [`defaultDigits`](/documentation/Foundation/Date/FormatStyle/Symbol/Minute/defaultDigits) static variable is the default format.

For more information about formatting dates, see the [`Date.FormatStyle`](/documentation/Foundation/Date/FormatStyle).

## Topics

### Modifying a Minute

[`static var defaultDigits: Date.FormatStyle.Symbol.Minute`](/documentation/Foundation/Date/FormatStyle/Symbol/Minute/defaultDigits)

The custom minute format style showing the minimum number of digits that represents the numeric minute.

[`static var twoDigits: Date.FormatStyle.Symbol.Minute`](/documentation/Foundation/Date/FormatStyle/Symbol/Minute/twoDigits)

The custom format style that shows the two-digit numeric minute, zero-padded if necessary.

### Comparing a Minute

[`static func == (Date, Date) -> Bool`](/documentation/Foundation/Date/==(_:_:))

Returns true if the two `Date` values represent the same point in time.

### Type Properties

[`static let omitted: Date.FormatStyle.Symbol.Minute`](/documentation/Foundation/Date/FormatStyle/Symbol/Minute/omitted)

The option for not including the symbol in the formatted output.

## Relationships

### Conforms To

[`Equatable`](/documentation/Swift/Equatable)

[`Hashable`](/documentation/Swift/Hashable)

[`Sendable`](/documentation/Swift/Sendable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)