Click here to Skip to main content
15,898,134 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I have got time as 10:30 am and 11:00 am by method provided in sql server.Now
I want to get time difference as 30 min or 00.30 .Please let me know how to implement
it in sql server 2005.

Thanking you
Mohammad Wasif
Posted

First googled result similar discussion[^]
 
Share this answer
 
Some samples here[^].
 
Share this answer
 
DateDff(time,getdate(),'2006-11-10 00:01:00.100')
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900