I\'m using a database to store logs, with a column \"date\" which holds the date it was inserted. The format of the date is \"MM/DD/YY\". Please can anyone suggest how I wou
The answer to your question depends on the data type that is used to store the date
field in the logs
table.
SQL (MySQL in your case) is fully capable of comparing dates. Usually, the BETWEEN .. AND ..
operator is used but that will not work correctly if the type of date
is CHAR (or VARCHAR) - in which case you will need to cast the date
field to a DATETIME before comparing.