---
title: dates
framework: corespotlight
role: symbol
role_heading: Instance Property
path: corespotlight/spotlightsearchtool/guidanceprofile/dates
---

# dates

A Boolean value that indicates whether to determine matches using date or time values.

## Declaration

```swift
var dates: Bool?
```

## Discussion

Discussion Set the value of this property to true to give the model the option to filter results based on date or time values. For example, you might enable this option if your items contain a start date or end date. If you don’t specify a value for this property, the default value is false.

## See Also

### Specifying the supported search techniques

- [contentType](corespotlight/spotlightsearchtool/guidanceprofile/contenttype.md)
- [numericMatch](corespotlight/spotlightsearchtool/guidanceprofile/numericmatch.md)
- [people](corespotlight/spotlightsearchtool/guidanceprofile/people.md)
- [similarityMatch](corespotlight/spotlightsearchtool/guidanceprofile/similaritymatch.md)
- [textMatch](corespotlight/spotlightsearchtool/guidanceprofile/textmatch.md)
