Calculating timespan with t-sql

前端 未结 7 1759
时光取名叫无心
时光取名叫无心 2020-11-30 07:32

Given two date/times:

@start_date = \'2009-04-15 10:24:00.000\'
@end_date = \'2009-04-16 19:43:01.000\'

Is it possible to calculate the tim

相关标签:
7条回答
  • 2020-11-30 08:02
    CONVERT(varchar,(@end_date-@start_date),108)
    

    This'll give it to you as HH:MM:SS

    Cheers

    0 讨论(0)
提交回复
热议问题