Validaing Date Range
<pre><code>Date1:23/05/2013  Date 2:29/05/2013
</code></pre>

<p>Now I have 2 dateTimePickers(namely dtDateStart  and dtDateFinish  respectively) and a submit button.</p>

<p>I want to validate on Submit button click, so it should not accept the dates between these 2 Dates(given above);</p>

<pre><code>if (dtDateStart &gt;= Date1 &amp;&amp; dtDateFinish &lt;= Date2)
                    {
                        //some operation
                    }
</code></pre>

<p>This code is working if we select the dates with in the range.
This code is not working when we select the dates like 20/05/2013 and 25/05/2013 and also with the dates 28/05/2013 and 01/06/2013.
Do you have any idea on how to write the if condition?</p>
