how to use datediff in my query to get the difference between two time form the table i wrote a query but its may have some errors and not working Select [Date],[TimeIn], [TimeOut], DateDiff(m, TimeIn, TimeOut) as Duration from [dbo].[Logs] WHERE PhoneNo = '"+lblphoneno.text+"'" i am...