<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFoundation",
  "identifier" : "/documentation/AVFoundation/AVPlayerItem/seek(to:)-5rt4x",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "AVFoundation"
    ],
    "preciseIdentifier" : "s:So12AVPlayerItemC12AVFoundationE4seek2toSb10Foundation4DateV_tYaF"
  },
  "title" : "seek(to:)"
}
-->

# seek(to:)

Sets the current playback time to the time specified by the date object.

```
nonisolated func seek(to date: Date) async -> Bool
```

## Parameters

`date`

The time to which to seek.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the playhead was moved to `date`, otherwise <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

For playback content that is associated with a range of dates, this method moves the playhead to point within that range. This method will fail (return <doc://com.apple.documentation/documentation/Swift/false>) if `date` is outside the range or if the content is not associated with a range of dates.

## See Also

[`func seek(to: CMTime, toleranceBefore: CMTime, toleranceAfter: CMTime, completionHandler: ((Bool) -> Void)?)`](/documentation/AVFoundation/AVPlayerItem/seek(to:toleranceBefore:toleranceAfter:completionHandler:))

Sets the current playback time within a specified time bound and invokes the specified block when the seek operation completes or is interrupted.

[`func seek(to: CMTime, completionHandler: ((Bool) -> Void)?)`](/documentation/AVFoundation/AVPlayerItem/seek(to:completionHandler:)-91gnw)

Sets the current playback time to the specified time.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)