---
title: PKDateComponentsRange
framework: passkit
role: symbol
role_heading: Class
path: passkit/pkdatecomponentsrange
---

# PKDateComponentsRange

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

## Declaration

```swift
class PKDateComponentsRange
```

## Overview

Overview Create a PKDateComponentsRange with date components that are valid dates and have a calendar. The 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

- [init(start:end:)](passkit/pkdatecomponentsrange/init(start:end:).md)

### Reading the Start and End Dates

- [startDateComponents](passkit/pkdatecomponentsrange/startdatecomponents.md)
- [endDateComponents](passkit/pkdatecomponentsrange/enddatecomponents.md)

### Initializers

- [init(coder:)](passkit/pkdatecomponentsrange/init(coder:).md)
- [init(startDateComponents:endDateComponents:)](passkit/pkdatecomponentsrange/init(startdatecomponents:enddatecomponents:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Working with shipping methods

- [detail](passkit/pkshippingmethod/detail.md)
- [dateComponentsRange](passkit/pkshippingmethod/datecomponentsrange.md)
- [identifier](passkit/pkshippingmethod/identifier.md)
