First suggestion would be to store your dates as DATE or DATETIME (or possibly TIMESTAMP) types in the database, making things much, much easier. If for some reason that is not feasible -- and you better have a really good reason that I frankly can't imagine -- then you would probably have to make use of MySQL's STR_TO_DATE() function to convert on the fly, then use the result as needed, perhaps in a BETWEEN statement.
"Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
~ Terry Pratchett in Nation
Bookmarks