 <p>You can compare two date with following way ..</p> <p>==> extend in built NSDate Class (.h as well as .m files)</p> <pre><code>#import &lt;Foundation/Foundation.h&gt; struct DateInformation { int day; int month; int year; int weekday; int minute; int hour; int second; }; typedef struct DateInformation DateInformation; @interface NSDate (Extra) - (DateInformation) dateInformation; @end </code></pre> <p>implementation class:</p> <pre><code>#import "NSDate+Extra.h" @implementation NSDate (Extra) - (DateInformation) dateInformation { DateInformation info; NSCalendar *gregorian = [[NSCalendar alloc] initWithCalendarIdentifier:NSGregorianCalendar]; NSDateComponents *comp = [gregorian components:(NSMonthCalendarUnit | NSMinuteCalendarUnit | NSYearCalendarUnit |NSDayCalendarUnit | NSWeekdayCalendarUnit | NSHourCalendarUnit | NSSecondCalendarUnit) fromDate:self]; info.day = [comp day]; info.month = [comp month]; info.year = [comp year]; info.hour = [comp hour]; info.minute = [comp minute]; info.second = [comp second]; info.weekday = [comp weekday]; [gregorian release]; return info; } @end </code></pre> <p>from the class where you want to compare to dates </p> <p>do following for both dates</p> <pre><code> NSDate *date=[NSDate date]; DateInformation info=[date dateInformation]; NSLog(@"%@",info); NSDate *date1=[NSDate dateWithTimeIntervalSinceNow:1242141]; DateInformation info=[date1 dateInformation]; NSLog(@"%@",info); </code></pre> <p>implement one more method in extended date class for comparing all the parameter of date which are integer..</p> <p>hope it can help you</p> <p>regards, neil</p>