In sqlite, date format should be as follows.
YYYY-MM-DD
YYYY-MM-DD HH:MM
YYYY-MM-DD HH:MM:SS
YYYY-MM-DD HH:MM:SS.SSS
YYYY-MM-DDTHH:MM
YYYY-MM-DDTHH:MM:SS
YYYY-MM-DDTHH:MM:SS.SSS
HH:MM
HH:MM:SS
HH:MM:SS.SSS
now
DDDDDDDDDD
Try changing the query as below
SELECT * FROM test WHERE date BETWEEN "2011-01-11" AND "2011-8-11"
For more information, see SQLite site.
© 2024 OneMinuteCode. All rights reserved.