Sorry, forgot what forum I was In!
In SQL Server you could try
WHERE DATEPART(d, incoming date) = target date day and DATEPART(m, incoming date) = target date month and DATEPART(yyyy, incoming date) = target date year and DATEPART(hh, incoming date) between 6 and 10 ...
hour hh
minute mi, n
second ss, s
millisecond ms
You get the idea.
Again, I hope this helps. George K
...the foolishness of men! When they are learned they think they are wise.