---
title: HKPredicateKeyPathMostRecentEndDate
framework: healthkit
role: symbol
role_heading: Global Variable
path: healthkit/hkpredicatekeypathmostrecentenddate
---

# HKPredicateKeyPathMostRecentEndDate

The key path for the end date of the sample’s most recent quantity.

## Declaration

```swift
let HKPredicateKeyPathMostRecentEndDate: String
```

## Discussion

Discussion Use this constant whenever you want to include a sample’s quantity in a predicate format string. Add a %K placeholder to the format string, and then pass this constant as an argument.

## See Also

### Specifying Predicate Key Paths

- [HKPredicateKeyPathMin](healthkit/hkpredicatekeypathmin.md)
- [HKPredicateKeyPathAverage](healthkit/hkpredicatekeypathaverage.md)
- [HKPredicateKeyPathMax](healthkit/hkpredicatekeypathmax.md)
- [HKPredicateKeyPathMostRecent](healthkit/hkpredicatekeypathmostrecent.md)
- [HKPredicateKeyPathMostRecentStartDate](healthkit/hkpredicatekeypathmostrecentstartdate.md)
- [HKPredicateKeyPathMostRecentDuration](healthkit/hkpredicatekeypathmostrecentduration.md)
