---
title: "dateCheckingResult(range:date:)"
framework: foundation
role: symbol
role_heading: Type Method
path: "foundation/nstextcheckingresult/datecheckingresult(range:date:)"
---

# dateCheckingResult(range:date:)

Creates and returns a text checking result with the specified date.

## Declaration

```swift
class func dateCheckingResult(range: NSRange, date: Date) -> NSTextCheckingResult
```

## Parameters

- `range`: The range of the detected result.
- `date`: The detected date.

## Return Value

Return Value Returns an NSTextCheckingResult with the specified range and a resultType of date.

## See Also

### Text Checking Results for Dates and Times

- [dateCheckingResult(range:date:timeZone:duration:)](foundation/nstextcheckingresult/datecheckingresult(range:date:timezone:duration:).md)
- [date](foundation/nstextcheckingresult/date.md)
- [duration](foundation/nstextcheckingresult/duration.md)
- [timeZone](foundation/nstextcheckingresult/timezone.md)
