<!--
{
  "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/init(start:end:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "PassKit (Apple Pay and Wallet)"
    ],
    "preciseIdentifier" : "c:objc(cs)PKDateComponentsRange(im)initWithStartDateComponents:endDateComponents:"
  },
  "title" : "init(start:end:)"
}
-->

# init(start:end:)

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

```
init?(start startDateComponents: DateComponents, end endDateComponents: DateComponents)
```

## Parameters

`startDateComponents`

The start date and time of the range.

`endDateComponents`

The end date and time of the range.

---

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)