Returns a Boolean value that indicates whether the current combination of properties represents a date which exists in the specified calendar.
- iOS 8.0+
- macOS 10.9+
- UIKit for Mac 13.0+Beta
- tvOS 9.0+
- watchOS 2.0+
The calendar for which to use in the calculation.
true if the date corresponding to the receiver's values is valid and exists in the given calendar, otherwise
time property is set on the receiver, the time zone property value is used.
This property should not be used for
NSDate objects that represent relative quantities of calendar components. To find the the next or previous date that matches a particular set of date components, use the
NSCalendar instance method