I tried this method, but because 11/13 has time associated with it, it
won’t find it. If I use a date that has 00:00:00 as the time, it finds
it. That’s why I had to use the date() method in mysql, because it
only exposes the date part of the field to the query. Does that make
sense? I need to be able to find all records with that date regardless
of the times assigned.
Thank you for your quick response, is there anything else I can do?
I don’t use the string as a date, personally, but create a timestamp
using Time.gm and pass that into my SQL query. This means I know
exactly what’s being passed through with no parsing of UK/US/Whatever
standard dates.
In similar vein I’ve truncated by to_date on the Ruby timestamp rather
than in the query text. When it is converted it has the midnight
time.