How to use the search bar for differentiate the data based on time?
<p>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.</p>

<pre><code>    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&gt;0)||(adrsrange.length&gt;0)) 
    {
        [copydata addObject:databasefield];
    }
</code></pre>

<p>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.</p>
