---
title: "init(end:)"
framework: eventkit
role: symbol
role_heading: Initializer
path: "eventkit/ekrecurrenceend/init(end:)"
---

# init(end:)

Initializes and returns a date-based recurrence end with a given end date.

## Declaration

```swift
convenience init(end endDate: Date)
```

## Parameters

- `endDate`: The end date.

## Return Value

Return Value The initialized recurrence end.

## Discussion

Discussion The end date argument must be a valid NSDate and not nil; otherwise an exception will be raised.

## See Also

### Related Documentation

- [Calendar and Reminders Programming Guide](apple-archive/documentation/DataManagement/Conceptual/EventKitProgGuide/Introduction.md)

### Creating a Recurrence End

- [init(occurrenceCount:)](eventkit/ekrecurrenceend/init(occurrencecount:).md)
