---
title: "init(start:end:)"
framework: passkit
role: symbol
role_heading: Initializer
path: "passkit/pkdatecomponentsrange/init(start:end:)"
---

# init(start:end:)

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

## Declaration

```swift
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.
