DATEDIFF (Transact-SQL) - SQL Server | Microsoft Docs
https://docs.microsoft.com/en-us/sql/t-sql/functions/datediff-transact-sql
Feb 01, 2022 · For millisecond, the maximum difference between startdate and enddate is 24 days, 20 hours, 31 minutes and 23.647 seconds. For second, the maximum difference is 68 years, 19 days, 3 hours, 14 minutes and 7 seconds. If startdate and enddate are both assigned only a time value, and the datepart is not a time datepart, DATEDIFF returns 0.
DA: 58 PA: 32 MOZ Rank: 72