I'm having a bear of a time comparing time in HH:MM:SS AM/PM format. It's got to be possible right? I wish the database was storing GMT time, not sure why it was setup this way. My main goal is to return any values where the time field is less than 2 hrs old. This can come from either the sql or the web server.Anyway, here's a couple examples of what I've been trying:select * from table where date = DATEADD(day, DATEDIFF(day, 0, GETDATE()), 0) and [time] >= '16:24:22' orselect * from tablewhere date = DATEADD(day, DATEDIFF(day, 0, GETDATE()), 0) and [time] > '04:23:18 PM'
example of data from time field:4:03:10 AM4:04:16 AM4:05:11 AM5:19:52 PM5:21:46 PM5:22:05 PM5:22:07 PM9:05:08 PM