I am having array of dates and i need to fetch only those dates which comes between two differnt dates (StartDate and EndDate)..
can any one help me out in so
Assuming you have startDate and endDate instances of type NSDate you can:
startDate
endDate
NSDate
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"(SELF > %@) AND (SELF < %@)", startDate, endDate]; NSArray *result = [arrayWithDates filteredArrayUsingPredicate:predicate];