Question: How should DateDiffNoWeekends work?
One of the tools we have in our free SDU Tools for Developers and DBAs is a version of DATEDIFF that excludes weekends. It’s DateDiffNoWeekends.
This has been a very popular function.
One of the customers who is using these tools found that it was returning different results to what he expected. And it got me re-thinking how it should work.
Let’s start by assuming that weekends are Saturday and Sunday. That’s what most people seem to assume.
2019-02-12