---
title: "init(dateInterval:storeManager:)"
framework: CareKit
role: symbol
role_heading: Initializer
platforms: [iOS 13.0+, Mac Catalyst 13.0+, watchOS 7.0+]
path: "carekit/ockcalendarcontroller/init(dateinterval:storemanager:)"
---

# init(dateInterval:storeManager:)

Creates a calendar controller that contains a specific date.

## Declaration

```swift
required init(dateInterval: DateInterval, storeManager: OCKSynchronizedStoreManager)
```

## Parameters

- `dateInterval  `: A week-long date interval the calendar uses to display dates.
- `storeManager  `: The object that synchronizes between the store and controller.
