Instance Method
isDateInToday(_:)
iOS 8.0+
iPadOS 8.0+
Mac Catalyst 8.0+
macOS 10.10+
tvOS 9.0+
watchOS 2.0+
Returns a Boolean value indicating whether the given date is within today, as defined by the calendar and calendar’s locale.
func isDateInToday(_ date: Date) -> Bool
Parameters
dateThe specified date.
Return Value
true if the given date is within today.