Hi there,
I am trying to return all records less than todays date using...
SELECT HitDate FROM dbo.TblStatsPageHits WHERE(HitDate < GETDATE()) ORDER BY HitDate
I still get records from today. I assume its because of the time element. ie it returns anything before the date AND time now. How can I get everything before JUST before todays date. Thus ignoring time element.
I hope you can help
Regards
Mark
I am trying to return all records less than todays date using...
SELECT HitDate FROM dbo.TblStatsPageHits WHERE(HitDate < GETDATE()) ORDER BY HitDate
I still get records from today. I assume its because of the time element. ie it returns anything before the date AND time now. How can I get everything before JUST before todays date. Thus ignoring time element.
I hope you can help
Regards
Mark