SELECT * FROM dbo.MyTable WHERE myDate BETWEEN '2013-07-12 07:25' AND '2013-07-12 08:45'
var gps = (from g in db.GPSDATAs where (g.iVehicleID == id) && (g.dtTime.Day == transDate.Day && g.dtTime.Month == transDate.Month && g.dtTime.Year == transDate.Year) && (g.dtTime.Hour >= startTime.Hour && g.dtTime.Hour <= endTime.Hour) && (g.dtTime.Minute >= startTime.Minute && g.dtTime.Minute <= endTime.Minute)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)