DATEDIFF (Transact-SQL) - SQL Server | Microsoft Learn DATEDIFF uses the time zone offset component of startdate or enddate to calculate the return value Because smalldatetime is accurate only to the minute, seconds and milliseconds are always set to 0 in the return value when startdate or enddate have a smalldatetime value
sql-docs docs t-sql functions datediff-transact-sql. md at live . . . - GitHub DATEDIFF uses the time zone offset component of startdate or enddate to calculate the return value Because smalldatetime is accurate only to the minute, seconds and milliseconds are always set to 0 in the return value when startdate or enddate have a smalldatetime value