---
title: contentAccessDateKey
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/urlresourcekey/contentaccessdatekey
---

# contentAccessDateKey

The time at which the resource was most recently accessed.

## Declaration

```swift
static let contentAccessDateKey: URLResourceKey
```

## Discussion

Discussion This key corresponds to an NSDate value, or nil if the volume doesn’t support access dates. note: Beginning in macOS 10.13, iOS 11, watchOS 4, tvOS 11, and later, contentAccessDateKey is read-write. Attempts to set a value for this file resource property on earlier systems are ignored. When you set the contentAccessDateKey for a resource, also set contentModificationDateKey in the same call to the setResourceValues(_:) method. Otherwise, the file system may set the contentAccessDateKey value to the current contentModificationDateKey value.

## See Also

### Other resource keys

- [keysOfUnsetValuesKey](foundation/urlresourcekey/keysofunsetvalueskey.md)
- [quarantinePropertiesKey](foundation/urlresourcekey/quarantinepropertieskey.md)
- [addedToDirectoryDateKey](foundation/urlresourcekey/addedtodirectorydatekey.md)
- [attributeModificationDateKey](foundation/urlresourcekey/attributemodificationdatekey.md)
- [contentModificationDateKey](foundation/urlresourcekey/contentmodificationdatekey.md)
- [creationDateKey](foundation/urlresourcekey/creationdatekey.md)
- [customIconKey](foundation/urlresourcekey/customiconkey.md)
- [documentIdentifierKey](foundation/urlresourcekey/documentidentifierkey.md)
- [effectiveIconKey](foundation/urlresourcekey/effectiveiconkey.md)
- [generationIdentifierKey](foundation/urlresourcekey/generationidentifierkey.md)
- [hasHiddenExtensionKey](foundation/urlresourcekey/hashiddenextensionkey.md)
- [isExcludedFromBackupKey](foundation/urlresourcekey/isexcludedfrombackupkey.md)
- [isExecutableKey](foundation/urlresourcekey/isexecutablekey.md)
- [isHiddenKey](foundation/urlresourcekey/ishiddenkey.md)
- [isReadableKey](foundation/urlresourcekey/isreadablekey.md)
