wetmatter nonsense

let's get random 
Filed under

date calculation

 

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 Bytes)

Screenshot

Filed under  //   date calculation   datediff   sql   sql scripts   sqlshhots   tsql  
Posted by Samson Loo 

Comments [0]