Instance Method

compare(_:)

Compares two date values.

Declaration

func compare(_ other: Date) -> ComparisonResult

See Also

Comparing Dates

static func < (Date, Date) -> Bool

Returns a Boolean that is true if the left hand date is earlier in time than the right hand date.

static func == (Date, Date) -> Bool

Returns a Boolean that is true if the two date values represent the same point in time.