title: get DATEDIFF excluding weekends using sql server
body: <p>I am using this query to get time taken.</p>
  
  <pre><code>SELECT DATEDIFF(dd, ActualStartDate, ActualCompletionDate) AS TimeTaken
  FROM TableName
  </code></pre>
  
  <p>Now I want to exclude weekends and only include Mon-Fri as days counted.</p>