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

# contains(_:)

Indicates whether the receiver contains the specified date.

## Declaration

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

## Parameters

- `date`: The date for which to test membership of the date interval.

## Return Value

Return Value true if the receiver contains date. Otherwise, false.
