---
title: expirationDate
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/nsuseractivity/expirationdate
---

# expirationDate

The date after which the activity is no longer eligible for Handoff or indexing.

## Declaration

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

## Discussion

Discussion If you don’t set the value of this property, the system automatically expires the activity after a period of time.

## See Also

### Enabling system behaviors

- [isEligibleForHandoff](foundation/nsuseractivity/iseligibleforhandoff.md)
- [isEligibleForSearch](foundation/nsuseractivity/iseligibleforsearch.md)
- [isEligibleForPublicIndexing](foundation/nsuseractivity/iseligibleforpublicindexing.md)
- [isEligibleForPrediction](foundation/nsuseractivity/iseligibleforprediction.md)
