I have a strings – time, start, end: format “hh:mm”
for example, “21:00”.
I need compare – “time” falls between the Start and End
if End < Start, for example (“21:10” “10:00”) should be considered as: from ‘Start’ to ‘End’ the next day.
I can’t convert NSSTring like @”23:00″ to NSDate, and then I need to compare… 🙁
Thanks for advice 😉
You can convert a string of type
HH:mminto anNSDate. IfendDateis smaller thanstartDate, then add a day to it.PS. I am assuming ARC is used here.