<!--
{
  "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/dateIntervalOfWeekend(containing:start:interval:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation8CalendarV21dateIntervalOfWeekend10containing5start8intervalSbAA4DateV_AIzSdztF"
  },
  "title" : "dateIntervalOfWeekend(containing:start:interval:)"
}
-->

# dateIntervalOfWeekend(containing:start:interval:)

Find the range of the weekend around the given date, returned via two by-reference parameters.

```
func dateIntervalOfWeekend(containing date: Date, start: inout Date, interval: inout TimeInterval) -> Bool
```

## Parameters

`date`

The date at which to start the search.

`start`

When the result is `true`, set

## Return Value

`true` if a date range could be found, and `false` if the date is not in a weekend.

## Discussion

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)