Instance Property

dates

An array containing labeled Gregorian dates.

Declaration

var dates: [CNLabeledValue<NSDateComponents>] { get }

Discussion

This property is an array of CNLabeledValue objects, each of which has an NSString label and NSDateComponents value. You can use this property to store Gregorian dates such as anniversaries. Day and month components are required and year is optional. The calendar component can be nil or gregorian. 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 CNError.Code.validationConfigurationError.

See Also

Getting Birthday Information

var birthday: DateComponents?

A date component for the Gregorian birthday of the contact.

var nonGregorianBirthday: DateComponents?

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