wetmatter nonsense

let's get random 
« Back to blog

SQLShots: Simple Date Calculation

I work a great deal with SQL Server Reporting Services and in some (if not most) of my previous reports I often needed to calculate the number of days between two given dates. Usually the amount of days a Work Order has been open, how many days it's past due and such. Well using the DateDiff() function it makes it really simple to accomplish. However If you need to calculate age there is a bit more logic required. See Jacob's post at http://bit.ly/2O2qWW for further deatils.

Click here to download:
DateCalculation.sql (0 KB)

Posted by Samson Loo 

Comments (0)

Leave a comment...