---
title: isValidDate
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/datecomponents/isvaliddate
---

# isValidDate

Indicates whether the current combination of properties represents a date which exists in the current calendar.

## Declaration

```swift
var isValidDate: Bool { get }
```

## Discussion

Discussion This method is not appropriate for use on DateComponents values which are specifying relative quantities of calendar components. Except for some trivial cases (e.g., ‘seconds’ should be 0 - 59 in any calendar), this method is not necessarily cheap. If the time zone property is set in the DateComponents, it is used. The calendar property must be set, or the result is always false.

## See Also

### Validating a Date

- [isValidDate(in:)](foundation/datecomponents/isvaliddate(in:).md)
- [date](foundation/datecomponents/date.md)
