i have date column in my database in dd-mm-yyyy
format.
i want to search the 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 resolve this issue?
The date format must be YYYY-MM-DD in SQLite.
use :
here Attribute_name is
date_time
column nameexample :