---
title: dates
framework: contacts
role: symbol
role_heading: Instance Property
path: contacts/cncontact/dates
---

# dates

An array containing labeled Gregorian dates.

## Declaration

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

## Discussion

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

- [birthday](contacts/cncontact/birthday.md)
- [nonGregorianBirthday](contacts/cncontact/nongregorianbirthday.md)
