---
title: documentDate
framework: datadetection
role: symbol
role_heading: Instance Property
path: datadetection/datadetector/options/documentdate
---

# documentDate

The creation date of the scanned string.

## Declaration

```swift
var documentDate: Date?
```

## Discussion

Discussion Set documentDate to the creation date of the scanned string. For example, this property can represent the reception date of a text message. The default is now.

## See Also

### Hints you can provide to add more context for the matching process

- [documentLanguageCode](datadetection/datadetector/options/documentlanguagecode.md)
- [documentRegion](datadetection/datadetector/options/documentregion.md)
- [documentTimeZone](datadetection/datadetector/options/documenttimezone.md)
