在其他地方看到一个有点意思的东西.是记录转换规则的. DECLARE @Date1 DATETIME = '2016-06-21 11:53:00' , @Date2 DATETIME = '2016-06-22 13:25:00' SELECT DATEDIFF(day, @Date1, @Date2) , CAST(@Date2 - @Date1 AS INT) , CAST(@Date2 AS INT) - CAST(@Date1 AS INT) , CAST(CAST(@Date2 AS…