Display dates of a month or year for which the day name is Friday, in Java or JavaScript?
<p>How can I display the dates in a month or year for which the name of the day is Friday, in Java or JavaScript?</p>

<p>For example, for the month of December 2011, the code would display:</p>

<ul>
<li>2/12/2011</li>
<li>9/12/2011</li>
<li>16/12/2011</li>
<li>23/12/2011</li>
<li>30/12/2011</li>
</ul>
