Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return Hour:Minutes from two datetime fields
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
00839876
Message ID:
00839887
Views:
17
You can simplify the code a little bit.
SELECT CONVERT(CHAR(5), DATEADD(mi, DATEDIFF(mi, @dt1,@dt2), ''), 108)
>Thank you Sergey, it worked perfect.
>
>Kirk
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform