Question: how to calculate the number of weeks between two dates in sql?
Answer: In SQL Server, there's a buildin function to calculate the number of weeks between two dates. This function is called “DateDiff”. The problem with this function is that Sql Server thinks the week starts on sunday. Maybe this it true in some situations but at my current project, the week should start on monday.