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 solving this... thanks in advance
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 solving this... thanks in advance
Assuming you have
startDate
andendDate
instances of typeNSDate
you can:Check out
filterWithPredicate
, it allows you to create a filter rule to apply against all elements in the array.