Dates and Times in SQL Server: DATEDIFF() and DATEDIFF_BIG()
Randolph West
Posted on 21 November 2018
Comments
Last time we looked at adding or subtracting date parts using the DATEADD() T-SQL system function. This week we see how to calculate the difference between two date-time values using DATEDIFF() and DATEDIFF_BIG(). The syntax for both functions is identical: [crayon-5bf59aaf0bb63225710212/] The only functional difference between them is that the DATEDIFF_BIG() returns values as a [...]
![Dates and Times in SQL Server: DATEDIFF() and DATEDIFF_BIG()]()
Born SQL with Randolph West
The post Dates and Times in SQL Server: DATEDIFF() and DATEDIFF_BIG() appeared first on Born SQL .

Born SQL with Randolph West
Randolph West solves technology problems with a focus on SQL Server and C#. He is a Microsoft Data Platform MVP who has worked with SQL Server since the late 1990s. When not consulting, he can be seen acting on the stage and screen or doing voices for independent video games.