---
title: creationTime
framework: foundation
role: symbol
role_heading: Type Property
path: foundation/nsattributedstring/documentattributekey/creationtime
---

# creationTime

The creation date of the document.

## Declaration

```swift
static let creationTime: NSAttributedString.DocumentAttributeKey
```

## Discussion

Discussion The value of this attribute is an NSDate object containing the creation date of the document; note that this is not the file system creation date of the file, but of the document.

## See Also

### Getting document metadata keys

- [author](foundation/nsattributedstring/documentattributekey/author.md)
- [category](foundation/nsattributedstring/documentattributekey/category.md)
- [characterEncoding](foundation/nsattributedstring/documentattributekey/characterencoding.md)
- [cocoaVersionDocumentAttribute](foundation/nsattributedstring/documentattributekey/cocoaversiondocumentattribute.md)
- [comment](foundation/nsattributedstring/documentattributekey/comment.md)
- [company](foundation/nsattributedstring/documentattributekey/company.md)
- [converted](foundation/nsattributedstring/documentattributekey/converted.md)
- [copyright](foundation/nsattributedstring/documentattributekey/copyright.md)
- [editor](foundation/nsattributedstring/documentattributekey/editor.md)
- [keywords](foundation/nsattributedstring/documentattributekey/keywords.md)
- [manager](foundation/nsattributedstring/documentattributekey/manager.md)
- [modificationTime](foundation/nsattributedstring/documentattributekey/modificationtime.md)
- [readOnly](foundation/nsattributedstring/documentattributekey/readonly.md)
- [subject](foundation/nsattributedstring/documentattributekey/subject.md)
- [title](foundation/nsattributedstring/documentattributekey/title.md)
