---
title: "isDateInToday(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/calendar/isdateintoday(_:)"
---

# isDateInToday(_:)

Returns a Boolean value indicating whether the given date is within today.

## Declaration

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

## Parameters

- `date`: The specified date.

## Return Value

Return Value true if the given date is within today, as defined by the calendar and calendar’s locale; otherwise, false.

## See Also

### Comparing Dates

- [compare(_:to:toGranularity:)](foundation/calendar/compare(_:to:togranularity:).md)
- [isDate(_:equalTo:toGranularity:)](foundation/calendar/isdate(_:equalto:togranularity:).md)
- [isDate(_:inSameDayAs:)](foundation/calendar/isdate(_:insamedayas:).md)
- [isDateInTomorrow(_:)](foundation/calendar/isdateintomorrow(_:).md)
- [isDateInYesterday(_:)](foundation/calendar/isdateinyesterday(_:).md)
- [isDateInWeekend(_:)](foundation/calendar/isdateinweekend(_:).md)
