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

# init(start:end:)

Creates and returns a text provider with the specified start and end dates.

## Declaration

```swift
convenience init(start startDate: Date, end endDate: Date)
```

## Parameters

- `startDate`: The start date for the time range. This parameter must not be nil.
- `endDate`: The end date for the time range. The specified date must come after the date in the startDate parameter. This parameter must not be nil.

## Return Value

Return Value A text provider initialized with the specified start and end dates.

## Discussion

Discussion The returned text provider uses the default calendar and time zone information for the current user. Date and time values are formatted according to the user’s current locale information.

## See Also

### Creating the Text Provider

- [init(start:end:timeZone:)](clockkit/clktimeintervaltextprovider/init(start:end:timezone:).md)
