Click here to Skip to main content
15,890,512 members
Articles / Database Development / SQL Server

Difference Between Two datetime Values in Hours, Minutes, etc.

Rate me:
Please Sign up or sign in to vote.
5.00/5 (7 votes)
18 Sep 2015CPOL3 min read 104.5K   198   6  
This tip shows how to calculate a difference between two datetime values and to express the difference in years, days, hours, minutes and so on.

Views

Daily Counts

Downloads

Weekly Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
Europe Europe
Biography provided

Comments and Discussions