---
title: "resolveDateSearchType(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/insearchfornotebookitemsintenthandling/resolvedatesearchtype(for:with:)"
---

# resolveDateSearchType(for:with:)

Resolves how to use a date value during the search.

## Declaration

```swift
optional func resolveDateSearchType(for intent: INSearchForNotebookItemsIntent, with completion: @escaping @Sendable (INDateSearchTypeResolutionResult) -> Void)
```

```swift
optional func resolveDateSearchType(for intent: INSearchForNotebookItemsIntent) async -> INDateSearchTypeResolutionResult
```

## Parameters

- `intent`: The intent object containing details about the user’s request. Use this object to get the initial information, if any, provided by the user.
- `completion`: The handler block to execute with the resolution. You must execute this handler at some point during your implementation of this method. This handler has no return value and takes the following parameter:

## Discussion

Discussion Implement this method to resolve how to use a date value when searching. Use this method to verify that you can perform a date-based search for the type specified by the dateSearchType property of the intent. If the type is INDateSearchType.unknown or you don’t consider dates when performing the search, return a resolution indicating you don’t need the date type. Return a successful resolution if you support searching using the specified type or return a different result if you don’t support the user requested type.

## See Also

### Resolving the Intent Parameters

- [resolveItemType(for:with:)](intents/insearchfornotebookitemsintenthandling/resolveitemtype(for:with:).md)
- [resolveTitle(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvetitle(for:with:).md)
- [resolveContent(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvecontent(for:with:).md)
- [resolveStatus(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvestatus(for:with:).md)
- [resolveDateTime(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvedatetime(for:with:).md)
- [resolveLocation(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvelocation(for:with:).md)
- [resolveLocationSearchType(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvelocationsearchtype(for:with:).md)
- [resolveTaskPriority(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvetaskpriority(for:with:).md)
- [resolveTemporalEventTriggerTypes(for:with:)](intents/insearchfornotebookitemsintenthandling/resolvetemporaleventtriggertypes(for:with:).md)
