---
title: "afterDate(_:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/calendar/recurrencerule/end-swift.struct/afterdate(_:)"
---

# afterDate(_:)

The event stops repeating after a given date

## Declaration

```swift
static func afterDate(_ date: Date) -> Calendar.RecurrenceRule.End
```

## Parameters

- `date`: The date on which the event may last occur. No further occurrences will be found after that
