I want to compare the todays date and other date coming from my database. For example, 2011-03-25 compare it with 2011-02-25
How can i formate my database date as t
NSDate *date1 = [NSDate date]; NSDate *date2 = [NSDate date]; if ([date1 compare: date2]==NSOrderedAscending) { NSLog(@"YES"); }