I have a plist with an array of dictionaries describing events, like this:
<array>
<dict>
<key>date</key>
<date>2011-11-19T00:00:00Z</date>
<key>title</key>
<string>Nederland - Zweden</string>
</dict>
<dict>
<key>date</key>
<date>2011-11-20T00:00:00Z</date>
<key>title</key>
<string>Polen - Engeland</string>
</dict>
</array>
Now I have a section in tableview called 'Today' and I want the events that happen today (and only those), to be displayed in that section. I have made strings of today and of the date of the events. Now how can I display only those events that happen today?
Should I start using something like:
if ( [todayString isEqualToString:eventDateString ] ) {
}
Or start in here (Today-section is 0):
if (section == 0) {
}