Select particular dates from nsdictionary
<p>I have an <code>NSDictionary</code> which looks like.</p>

<pre><code>dic is : {
city = #;
country = #;
date = "2011-08-12 05:00:00 +0000";
"day_of_week" = Fri;
high = 79;
icon = "/ig/images/weather/chance_of_storm.gif";
low = 61;
startdate = "2011-08-12 05:00:00 +0000";
state = #;
}


dic is : {
city = #;
country = #;
date = "2011-08-13 05:00:00 +0000";
"day_of_week" = Fri;
high = 79;
icon = "/ig/images/weather/chance_of_storm.gif";
low = 61;
startdate = "2011-08-12 05:00:00 +0000";
state = #;
</code></pre>

<p>} </p>

<pre><code>dic is : {
city = #;
country = #;
date = "2011-08-14 05:00:00 +0000";
"day_of_week" = Sat;
high = 79;
low = 58;
startdate = "2011-08-12 05:00:00 +0000";
state = #;
</code></pre>

<p>} </p>

<pre><code>if(( [dd1 earlierDate:startDate]) &amp;&amp;[dd1 earlierDate:endDate] ) 

                {     
                    /*if([dd1 isEqualToDate:startDate] || [dd1 isEqualToDate:endDate] )
</code></pre>

<p>I am passing <code>NSDate</code>s from test cases. Startdate and enddate are passed from the test cases and dd1 is passed from the parser which is the date. I am trying to get values between 2 dates but getting all 4 dates. What is the solution to get only the date values I wish?</p>

<p>DD1 IS NSDATE OBJECT AND I AM GETTING IT FROM NSDICTIONARY.SO DD1 IS RUNNING INSIDE A FORLOOP WHERE I AM GETTING DATES AS 201-08-12,2011-08-13 ETC</p>
