I have an NSArray with the following name and date pairs in it. NOTE: Date is always in index 1 of my custom array
MyCustomArray:
(
"Toms Bday"
"2012-01-10"
)
(
"Jesscia Bday"
"2012-01-27"
)
(
"Jills Bday"
"2012-03-03"
)
(
"Joes Bday"
"2012-04-15"
)
There are hundreds of name date pairs in my array. So for a given StartDate = "2012-01-01" and endDate = "2012-01-31" I want to get just the following records. How do I do that?
(
"Toms Bday"
"2012-01-10"
)
(
"Jesscia Bday"
"2012-01-27"
)
I looked into this post Why can't NSDate be compared using < or >? but still can't figure it out.