Sunday, April 7, 2013

[SQL Server] How to get difference between two dates in days and hours?

[SQL Server] How to get difference between two dates in days and hours?


How to get difference between two dates in days and hours?

Posted: 07 Apr 2013 06:49 AM PDT

Hi, I'm looking code to find difference between two dates in days and hours. Example:date1: 2013-04-07 14:45:41.013 - date2: 2013-04-05 10:45:41.013I need output like 2 days and 6 hours?

No comments:

Post a Comment

Search This Blog