Instance Method

laterDate:

Returns the later of the receiver and another given date.

Declaration

- (NSDate *)laterDate:(NSDate *)anotherDate;

Parameters

anotherDate

The date with which to compare the receiver.

Return Value

The later of the receiver and anotherDate, determined using timeIntervalSinceDate:. If the receiver and anotherDate represent the same date, returns the receiver.

See Also

Comparing Dates

- isEqualToDate:

Returns a Boolean value that indicates whether a given object is a date that is exactly equal the receiver.

- earlierDate:

Returns the earlier of the receiver and another given date.

- compare:

Indicates the temporal ordering of the receiver and another given date.