---
title: "resolveDateCreated(for:with:)"
framework: intents
role: symbol
role_heading: Instance Method
path: "intents/instartphotoplaybackintenthandling/resolvedatecreated(for:with:)"
---

# resolveDateCreated(for:with:)

Resolves the taken dates for the photos.

## Declaration

```swift
optional func resolveDateCreated(for intent: INStartPhotoPlaybackIntent, with completion: @escaping @Sendable (INDateComponentsRangeResolutionResult) -> Void)
```

```swift
optional func resolveDateCreated(for intent: INStartPhotoPlaybackIntent) async -> INDateComponentsRangeResolutionResult
```

## 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 block to execute with the resolution. You must execute this block at some point during your implementation of this method. This block has no return value and takes the following parameter:

## Discussion

Discussion Implement this method to resolve the dates for the photos. When resolving the set of dates, always strive toward a successful resolution, but feel free to ask for confirmation if there’s a date range that you think yields the intended results. For example, if the user asks for photos from Paris taken in June, but your app only has Paris photos from July, you can ask the user to confirm the revised dates.

## See Also

### Resolving the Intent Parameters

- [resolveLocationCreated(for:with:)](intents/instartphotoplaybackintenthandling/resolvelocationcreated(for:with:).md)
- [resolvePeopleInPhoto(for:with:)](intents/instartphotoplaybackintenthandling/resolvepeopleinphoto(for:with:).md)
- [resolveAlbumName(for:with:)](intents/instartphotoplaybackintenthandling/resolvealbumname(for:with:).md)
