Instance Property

birthday

A date component for the Gregorian birthday of the contact.

Declaration

iOS, Mac Catalyst, watchOS
@property(readonly, copy, nonatomic) NSDateComponents *birthday;
macOS
@property(readonly, copy, atomic) NSDateComponents *birthday;

Discussion

Birthdays are represented by this property, whose values are the relevant properties of an NSDateComponents object. Day and month components are required for this property, and year is optional. The calendar component can be nil or NSCalendarIdentifierGregorian. All other date components are invalid and including them results in an NSError object that includes the key paths of the invalid components and the error code CNErrorCodeValidationConfigurationError.

See Also

Getting Birthday Information

nonGregorianBirthday

A date component for the non-Gregorian birthday of the contact.

dates

An array containing labeled Gregorian dates.