<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.9.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/NSCalendar/isDateInWeekend(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSCalendar(im)isDateInWeekend:"
  },
  "title" : "isDateInWeekend(_:)"
}
-->

# isDateInWeekend(_:)

Indicates whether a given date falls within a weekend period, as defined by the calendar and the calendar’s locale.

```
func isDateInWeekend(_ date: Date) -> Bool
```

## Parameters

`date`

The date for which to perform the calculation.

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the given date is within a weekend period, otherwise <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

If the date does fall within a weekend, you can use the [`range(ofWeekendStart:interval:containing:)`](/documentation/Foundation/NSCalendar/range(ofWeekendStart:interval:containing:)) method to determine the start date of that weekend period. Otherwise, you can use the [`nextWeekendStart(_:interval:options:after:)`](/documentation/Foundation/NSCalendar/nextWeekendStart(_:interval:options:after:)) method to determine the start date of the next or previous weekend.

---

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)