I have a table in MySQL That looks like the following:
date |storenum |views
-------------------------------
08/21/2009 |42 |3
-------------------------------
08/22/2009 |43 |1
-------------------------------
08/21/2009 |43 |4
-------------------------------
08/22/2009 |42 |22
-------------------------------
I know that this is an unconventional date format, but I am using it as opposed to YYYY-MM-DD for ease of use. Yet i have to search this database to get all “View Records” Between two dates. In general it works but when I search from a date such as 01/01/2009 to 01/01/2010 I get no results.
Does anyone have any suggestions? Constructive criticism is welcome. Thanks!
In all honesty, change the way you store dates. But for working with what you have now, you could look into using STR_TO_DATE() to convert these to dates that MySQL can work with.