How to check if an NSDate belongs to today?
NSDate
I used to check it using first 10 characters from [aDate description]. [[aDate descriptio
[aDate description]
[[aDate descriptio
There is an easier way than many of the above answers!
NSDate *date = ... // The date you wish to test NSCalendar *calendar = [NSCalendar currentCalendar]; if([calendar isDateInToday:date]) { //do stuff }