Calculating the number of holidays between a date range in C#
<p>I would like to know how to calculate the number of holidays between a date range in C#.</p>

<p>Example :Date Range 1st jan 2012 to 1st Feb 2012</p>

<pre><code> conditions:
    holiday1=&gt;From Date (30th Dec 2011 to 2nd jan 2012)
    holiday2 =&gt;From Date(16th jan 2012 to 18 th jan 2012)
    holiday3=&gt;From Date(30the jan 2012 to 2nd Feb 2012)
</code></pre>

<p>Here as first holidays is till 2nd jan I need to calculate 2 days for holiday1 as well as 2 days for holidays 3 and for holidays 2nd that's not a problem for me to calculate.</p>
