I have a table in SQLite that has four columns (id,login_date, logout_date, userid). The date fields has stored like as : 2018-09-18 17:20:19.955000. I want to select rows in a period of date regardless of hour, minute ... I get a date from applications user (FromDate and ToDate). How I can make a query with ORMLite only on the first 10 characters of dates field in the database?
SELECT substr(login_date,1,10) FROM articles where uid='20';