Contents

isDate(_:inSameDayAs:)

Indicates whether two dates are in the same day.

Declaration

func isDate(_ date1: Date, inSameDayAs date2: Date) -> Bool

Parameters

  • date1:

    The first date to compare.

  • date2:

    The second date to compare.

Return Value

true if both dates are within the same day, otherwise false.

See Also

Comparing Dates