title: How do I get count of weekend days from a range of dates
body: <p>I have to find out total number of saturday and sunday between Start Date &amp; End Date.</p>
  
  <p>Example #1:</p>
  
  <pre><code>StartDate = Getdate(), EndDate = GetDate() + 5      -- result should be 2.
  </code></pre>
  
  <p>Example #2:</p>
  
  <pre><code>StartDate = Getdate(), EndDate = GetDate() + 10     -- result should be 4.
  </code></pre>
  
  <p>Can anyone suggest please.</p>