All I want to do is find the records on a datetime column that match
today's date.
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?
All I want to do is find the records on a datetime column that match
today's date.
You want to say ['my_datetime_column >= ? and my_datetime_column < ?',
Date.today(), Date.today()+1]
This works because the dbs I know of handle '2007-04-20' as being
'2007-04-20 00:00:00'. If you db does something different you'll have
to adjust for that.