Not sure which data type and formatting to use when storing dates in my tables in DB browser for SQLite. Also not sure how to format the SQL queries when retrieving the data. For instance I've created a films database with an attribute for Release (as text data type), I want to be able to find films between two dates.
table : films
+-------+------------+-------------+
| id | title | Release |
+-------+------------+-------------+
| 1 | Star Wars | 2000-01-01 |
| 2 | Star Trek | 2010-01-01 |
tried:
SELECT * FROM tblFilms WHERE Release BETWEEN (2000-01-01 AND 2010-01-01)
This does not return any values
SELECT * FROM tblFilms WHERE Release BETWEEN '2000-01-01' AND '2010-01-01'