---
title: expirationDate
framework: corespotlight
role: symbol
role_heading: Instance Property
path: corespotlight/cssearchableitem/expirationdate
---

# expirationDate

The date after which the searchable item should no longer exist.

## Declaration

```swift
var expirationDate: Date! { get set }
```

## Mentioned in

Adding your app’s content to Spotlight indexes

## Discussion

Discussion If you don’t set the expirationDate property appropriately, the system automatically expires the item after a period of time.

## See Also

### Setting attributes on a searchable item

- [uniqueIdentifier](corespotlight/cssearchableitem/uniqueidentifier.md)
- [domainIdentifier](corespotlight/cssearchableitem/domainidentifier.md)
- [attributeSet](corespotlight/cssearchableitem/attributeset.md)
- [isUpdate](corespotlight/cssearchableitem/isupdate.md)
- [updateListenerOptions](corespotlight/cssearchableitem/updatelisteneroptions-swift.property.md)
- [CSSearchableItem.UpdateListenerOptions](corespotlight/cssearchableitem/updatelisteneroptions-swift.struct.md)
