<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 8.0.0 -",
    "macOS: 10.10.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/Calendar/nextWeekend(startingAfter:start:interval:direction:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation8CalendarV11nextWeekend13startingAfter5start8interval9directionSbAA4DateV_AJzSdzAC15SearchDirectionOtF"
  },
  "title" : "nextWeekend(startingAfter:start:interval:direction:)"
}
-->

# nextWeekend(startingAfter:start:interval:direction:)

Returns the range of the next weekend via two inout parameters. The weekend starts strictly after the given date.

```
func nextWeekend(startingAfter date: Date, start: inout Date, interval: inout TimeInterval, direction: Calendar.SearchDirection = .forward) -> Bool
```

## Parameters

`date`

The date at which to begin the search.

`start`

Upon return, the starting time of the calendar component that contains the date.

`interval`

Upon return, the duration of the calendar component that contains the date.

`direction`

Which direction in time to search. The default value is `.forward`.

## Return Value

`false` if the calendar and locale do not have the concept of a weekend, otherwise `true`.

## Discussion

If `direction` is `.backward`, then finds the previous weekend range strictly before the given date.

Note that a given entire day within a calendar is not necessarily all in a weekend or not; weekends can start in the middle of a day in some calendars and locales.

---

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)