Quantcast
Channel: SQLBlog Nederland » DateDiff
Browsing latest articles
Browse All 3 View Live

Image may be NSFW.
Clik here to view.

Calculate Weeks Between Two Dates using DateDiff

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...

View Article



Image may be NSFW.
Clik here to view.

Calculate DateDiff With Only WeekDays or Workdays

Today, I was working on a fact table for my datawarehouse. I was looking for a function to calculate the number of “normal weekdays” between two given dates  I had a record in my Dwh from a HR system...

View Article

Image may be NSFW.
Clik here to view.

Calculate time in hours and minutes between two dates

 Sounds easy right? I want to calculate the difference in hours and minutes between two dates. A good readable notition for my report. I want a format like this: 00:36:53 OR 02:13:45 This can easy be...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images