---
title: "init(date:timeZone:)"
framework: clockkit
role: symbol
role_heading: Initializer
path: "clockkit/clktimetextprovider/init(date:timezone:)"
---

# init(date:timeZone:)

Creates and returns a text provider for displaying the specified time.

## Declaration

```swift
convenience init(date: Date, timeZone: TimeZone?)
```

## Parameters

- `date`: The date object containing the time to display. This parameter must not be nil.
- `timeZone`: The time zone to use when formatting the date. If you specify nil, the text provider uses the default time zone currently associated with the user.

## Return Value

Return Value A text provider initialized with the specified date and time zone value.

## See Also

### Creating a Text Provider

- [init(date:)](clockkit/clktimetextprovider/init(date:).md)
