Enumeration

Undefined Components

Constants that denote that the value of a date component is undefined.

Declaration

enum : NSInteger {
    ...
};

Overview

For example, when an NSDateComponents object is created as the result of calculating the distance in time between two dates represented by a particular calendar, the value for the NSCalendarUnitWeekOfYear component would be set to NSDateComponentUndefined.

Topics

Constants

NSDateComponentUndefined

Specifies a date component without a value.

NSUndefinedDateComponent

Specifies a date component without a value.

Deprecated

See Also

Validating a Date

validDate

A Boolean value that indicates whether the current combination of properties represents a date which exists in the current calendar.

- isValidDateInCalendar:

Returns a Boolean value that indicates whether the current combination of properties represents a date which exists in the specified calendar.

date

The date calculated from the current components using the stored calendar.