Hi,
I found it myself. I though letting it you know.
SELECT id FROM tTimer where DATEDIFF(minute, Convert(datetime,tijdstip+DATEDIFF(day,tijdstip,Co nvert(datetime,'" & time & "',101)),101), Convert(datetime,'" & time & " " & FormatDateTime(Now(),3) & "',101)) > 0
where time is 20041020 17:01:00
In other words, I determine the difference in days between the day in the database cell and the current day. I add these to the date in the database cell. That way I can compare the two and get the difference in minutes between the two without concerning about the date.
Bey
|