I have a date column in my database in the format dd-mm-yyyy .
I want to search for data between two dates.
I tried
SELECT * FROM t_data where orderdate between '01-05-2012 00:00:00' and '31-05-2012 23:59:59'
and
SELECT * FROM t_data where orderdate >= '05-05-2012' and orderdate <='31-05-2012'
How to solve this problem?
database sqlite sqlite3 android-sqlite
kannan
source share