Given: SELECT STRFTIME('%s', '2018-01-01'); 1514764800 SELECT STRFTIME('%s', '2017-01-01'); 1483228800
CREATE TABLE date_types( id INTEGER PRIMARY KEY, date_type DATE ); INSERT INTO "date_types" ("id", "date_type") VALUES(1, 1514764800); INSERT INTO "date_types" ("id", "date_type") VALUES(2, 1483228800); date_type: Affinity now Integer. This does not seem to be possible, without some type of conversion to a Integer(s) value(s) then searching in a numeric range for the given TEXT date? SELECT "id", "date_type" FROM "date_types" WHERE "date_type" LIKE '2018-%-%'; danap. _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users