---
title: "isDateInWeekend(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/nscalendar/isdateinweekend(_:)"
---

# isDateInWeekend(_:)

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

## Declaration

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

## Parameters

- `date`: The date for which to perform the calculation.

## Return Value

Return Value true if the given date is within a weekend period, otherwise false.

## Discussion

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

## See Also

### Comparing Dates

- [compare(_:to:toUnitGranularity:)](foundation/nscalendar/compare(_:to:tounitgranularity:).md)
- [isDate(_:equalTo:toUnitGranularity:)](foundation/nscalendar/isdate(_:equalto:tounitgranularity:).md)
- [isDate(_:inSameDayAs:)](foundation/nscalendar/isdate(_:insamedayas:).md)
- [isDateInToday(_:)](foundation/nscalendar/isdateintoday(_:).md)
- [isDateInTomorrow(_:)](foundation/nscalendar/isdateintomorrow(_:).md)
- [isDateInYesterday(_:)](foundation/nscalendar/isdateinyesterday(_:).md)
