Count The Number of Sundays Till Today for the current Year and current month?
<p>How can I calculate the number of Sundays that have already passed from the current <code>YEAR</code> till today. I would also like to calculate the number of Sundays that have already passed from the current <code>MONTH</code> till today.</p>

<p>eg</p>

<pre><code>today is 14 April 2012 I should get 2 for the Number of Sundays
that are passed from the current month.
</code></pre>

<p>Can anyone give me a hint or a tutorial how this can be achieved ?</p>
