<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PassKit",
  "identifier" : "/documentation/PassKit/PKDateComponentsRange",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:objc(cs)PKDateComponentsRange"
  },
  "title" : "PKDateComponentsRange"
}
-->

# PKDateComponentsRange

An object that specifies the start and end dates for a range of time.

```
class PKDateComponentsRange
```

## Overview

Create a [`PKDateComponentsRange`](/documentation/PassKit/PKDateComponentsRange) with date components that are valid dates and have a calendar. The [`PKDateComponentsRange`](/documentation/PassKit/PKDateComponentsRange) class supports time zones in date components, and exact times are optional.

Provide a specific time and time zone in the date components to display a correct pickup time regardless of the user’s current time zone.

## Topics

### Creating a Date Range

[`-  initWithStartDateComponents:endDateComponents:`](/documentation/PassKit/PKDateComponentsRange/init(start:end:))

Creates a new time range with the start and end dates and times that you specify.

### Reading the Start and End Dates

[`startDateComponents`](/documentation/PassKit/PKDateComponentsRange/startDateComponents)

The start date and time of the range.

[`endDateComponents`](/documentation/PassKit/PKDateComponentsRange/endDateComponents)

The end date and time of the range.

## Relationships

### Conforms To

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

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

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

[`NSCopying`](/documentation/Foundation/NSCopying)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

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

[`NSCoding`](/documentation/Foundation/NSCoding)

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

[`NSSecureCoding`](/documentation/Foundation/NSSecureCoding)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

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)