earlierDate(_:)
Returns the earlier of the receiver and another given date.
Declaration
func earlierDate(_ anotherDate: Date) -> DateParameters
- anotherDate:
The date with which to compare the receiver.
Return Value
The earlier of the receiver and anotherDate, determined using timeIntervalSince(_:). If the receiver and anotherDate represent the same date, returns the receiver.