Instance Method

isDateInYesterday:

Indicates whether the given date is in “yesterday.”

Declaration

- (BOOL)isDateInYesterday:(NSDate *)date;

Parameters

date

The date for which to perform the calculation.

Return Value

YES if the given date is in “yesterday,” otherwise NO.

See Also

Comparing Dates

- compareDate:toDate:toUnitGranularity:

Indicates the ordering of two given dates based on their components down to a given unit granularity.

- isDate:equalToDate:toUnitGranularity:

Indicates whether two dates are equal to a given unit of granularity.

- isDate:inSameDayAsDate:

Indicates whether two dates are in the same day.

- isDateInToday:

Indicates whether the given date is in “today.”

- isDateInTomorrow:

Indicates whether the given date is in “tomorrow.”

- isDateInWeekend:

Indicates whether a given date falls within a weekend period, as defined by the calendar and the calendar's locale.