0

How can I calculate the time between two timestamps in MS SQL Server excluding any weekends?

For example, from 2013-05-03 17:00:00 to 2013-05-06 09:00:00 should give me 16 hours.

(Better if it's a function which I can call fn(hours, stdt, enddt).)

Deduplicator
  • 44,692
  • 7
  • 66
  • 118
Hing-Lun Ma
  • 83
  • 1
  • 1
  • 5

0 Answers0