Cleaned up code.

The method indexPathHasDate: had strange logic. Changed the confusing if
statements to a switch statement and removed the useless condition.