How can I check to see if a date is inherently TOMORROW?
I don\'t want to add hours or anything to a date like today, because if today is already 22:59
,
In iOS 8 there is a convenience method on NSCalendar
called isDateInTomorrow
.
Objective-C
NSDate *date;
BOOL isTomorrow = [[NSCalendar currentCalendar] isDateInTomorrow:date];
Swift 3
let date: Date
let isTomorrow = Calendar.current.isDateInTomorrow(date)
Swift 2
let date: NSDate
let isTomorrow = NSCalendar.currentCalendar().isDateInTomorrow(date)