[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? |
You are subscribed to email updates from SQLServerCentral / SQL Server 2008 / SQL Server Newbies To stop receiving these emails, you may unsubscribe now. | Email delivery powered by Google |
Google Inc., 20 West Kinzie, Chicago IL USA 60610 |
No comments:
Post a Comment