---
title: "contains(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/dateinterval/contains(_:)"
---

# contains(_:)

Indicates whether this interval contains the given date.

## Declaration

```swift
func contains(_ date: Date) -> Bool
```
