What is the best way to find out if a date falls within a certain date range? I am doing this right now:
if (([rangeStart compare:userEnteredDate] == NSOrderedAscending) && ([rangeEnd compare:userEnteredDate] == NSOrderedDescending)
The only problem with the above code is that if the rangeStart date and the userEnteredDate are the same, the if statement would yield "false" for some reason unknown to me. Anyone have any ideas why?
Is there a better way to check if userEnteredDate falls within rangeStart and rangeEnd?