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

# init(date:)

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

## Declaration

```swift
convenience init(date: Date)
```

## Parameters

- `date`: The date object containing the time to display. This parameter must not be nil.

## Return Value

Return Value A text provider initialized with the specified date.

## Discussion

Discussion The text provider created by this method uses the default time zone information of the current user. The time value is formatted using the current locale information for the user.

## See Also

### Creating a Text Provider

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