title: get number of sundays in a month using javascript
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/6210906/how-to-determine-number-saturdays-and-sundays-comes-between-two-dates-in-java-sc">How to determine number Saturdays and Sundays comes between two dates in java script</a>  </p>
  </blockquote>
  
  
  
  <p>I want to find the no of Sundays in a month using javascript</p>
  
  <p>i am passing month and year to a function</p>
  
  <p>i am able to calculate total days using  </p>
  
  <pre><code>  &lt;script type="text/javascript"&gt;
          function daysInMonth(month, year) {
              return new Date(year, month, 0).getDate();
          }
      &lt;/script&gt;
  </code></pre>
  
  <p>but need to find no of sundays</p>
  
  <p>Please suggest </p>