I have a datetime column and I need to search by a date, not datetime.
So obviously, I cannot do this:
find(:all, :conditions => [‘my_datetime_column = ?’, Date.today])
All I want to do is find the records on a datetime column that match
What I have had to do is convert each record in the datetime column to
a date and compare (== Date.today), which is slower than just using a
conditions option. What do you guys suggest?
Thanks for any help!