title: T-SQL Date Difference for WeekDays only
body: <p>I am trying to get the date difference in a given date excluding the week days.</p>
  
  <p>Here is what I have:</p>
  
  <pre><code>SELECT DATEADD (w, -4, GETDATE())
  </code></pre>
  
  <p>This returns <em>2013-05-04 19:01:53.170</em>, which means that it also counts weekends.</p>
  
  <p>Same for </p>
  
  <pre><code> SELECT DATEADD (dw, -4, GETDATE())
  </code></pre>
  
  <p>Any help will be appreciated.</p>
  
  <p>Thanks in advance.</p>