I store date as TEXT in my database in this format YYYY-MM-DD. Each row has start date and final date. I want to select the row that today date is between the start date and final date. Today date is string and is in the same format as those ex.2014-07-29 I've tried
SELECT * FROM TABLE_NAME WHERE date(todayDate) BETWEEN date(COLUMN_START_DATE) AND date(COLUMN_FINAL_DATE)
but it didn't work. I get 0 row. I've also tried
SELECT * FROM TABLE_NAME WHERE strftime('%Y-%m-%d', todayDate) BETWEEN COLUMN_START_DATE AND COLUMN_FINAL_DATE
Still not work. What am I doing wrong?