iam developing one application.In that i use the search bar for search the data.But my search is perform based on the time.So how to write the code for searching the data based on time.For normal string search i write the code like below.
NSRange namerange=[databasefield.name rangeOfString:srchbar.text options:NSCaseInsensitiveSearch];
NSRange adrsrange=[databasefield.address rangeOfString:srchbar.text options:NSCaseInsensitiveSearch];
//NSRange timerange=[databasefield.insert_datetime rangeOfString:srchbar.text options:NSCaseInsensitiveSearch];
if ((namerange.length>0)||(adrsrange.length>0))
{
[copydata addObject:databasefield];
}
In the above code in comments i written the code for search the data based on time.But it gives the error.So please tell me how to get this one.
If I understand correctly your problem, you can make it like here:
Where