---
title: "==(_:_:)"
framework: foundation
role: symbol
role_heading: Operator
path: "foundation/date/==(_:_:)"
---

# ==(_:_:)

Returns true if the two Date values represent the same point in time.

## Declaration

```swift
static func == (lhs: Date, rhs: Date) -> Bool
```

## See Also

### Comparing Dates

- [>(_:_:)](foundation/date/_(_:_:)-880ns.md)
- [<(_:_:)](foundation/date/_(_:_:)-42kro.md)
- [compare(_:)](foundation/date/compare(_:).md)
- [distance(to:)](foundation/date/distance(to:).md)
