---
title: cancelDate
framework: storekittest
role: symbol
role_heading: Instance Property
path: storekittest/sktesttransaction/canceldate
---

# cancelDate

The date when the system refunded the transaction.

## Declaration

```swift
var cancelDate: Date? { get }
```

## Discussion

Discussion The cancelDate is equivalent to the revocationDate in Transaction. The system sets the cancelDate if it refunds or revokes the in-app purchase. Otherwise, the value is nil. A subscription can have a nil cancelDate and be inactive if its expiration date passed. The system doesn’t set cancelDate if the user turns off auto-renewing for the subscription. If the user upgrades the subscription, the system sets isUpgraded in Transaction to true and sends a new transaction for the upgraded subscription. The system doesn’t set cancelDate in this case.

## See Also

### Getting Dates

- [purchaseDate](storekittest/sktesttransaction/purchasedate.md)
- [expirationDate](storekittest/sktesttransaction/expirationdate.md)
