---
title: modificationDate
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/fileattributekey/modificationdate
---

# modificationDate

The key in a file attribute dictionary whose value indicates the file’s last modified date.

## Declaration

```swift
static let modificationDate: FileAttributeKey
```

## Discussion

Discussion The corresponding value is an NSDate object. important: This API has the potential of being misused to access device signals to try to identify the device or user, also known as fingerprinting. Regardless of whether a user gives your app permission to track, fingerprinting is not allowed. When you use this API in your app or third-party SDK (an SDK not provided by Apple), declare your usage and the reason for using the API in your app or third-party SDK’s PrivacyInfo.xcprivacy file. For more information, including the list of valid reasons for using the API, see Describing use of required reason API.

## See Also

### Accessing File Attributes

- [appendOnly](foundation/fileattributekey/appendonly.md)
- [busy](foundation/fileattributekey/busy.md)
- [creationDate](foundation/fileattributekey/creationdate.md)
- [deviceIdentifier](foundation/fileattributekey/deviceidentifier.md)
- [extensionHidden](foundation/fileattributekey/extensionhidden.md)
- [groupOwnerAccountID](foundation/fileattributekey/groupowneraccountid.md)
- [groupOwnerAccountName](foundation/fileattributekey/groupowneraccountname.md)
- [hfsCreatorCode](foundation/fileattributekey/hfscreatorcode.md)
- [hfsTypeCode](foundation/fileattributekey/hfstypecode.md)
- [immutable](foundation/fileattributekey/immutable.md)
- [ownerAccountID](foundation/fileattributekey/owneraccountid.md)
- [ownerAccountName](foundation/fileattributekey/owneraccountname.md)
- [posixPermissions](foundation/fileattributekey/posixpermissions.md)
- [protectionKey](foundation/fileattributekey/protectionkey.md)
- [referenceCount](foundation/fileattributekey/referencecount.md)
