---
title: kMDItemLastUsedDate
framework: coreservices
role: symbol
role_heading: Global Variable
path: coreservices/kmditemlastuseddate
---

# kMDItemLastUsedDate

The date and time that the file was last used. This value is updated automatically by LaunchServices everytime a file is opened by double clicking, or by asking LaunchServices to open a file. A CFDate.

## Declaration

```swift
let kMDItemLastUsedDate: CFString!
```
