I have a problem for which I am writing one search query to do a search based on Date range which is in a string format. The problem is I am not able to query between two date ranges I specify.
This is my query::
String query = "SELECT DISTINCT * FROM Object WHERE (( TransactionAccount = '" + parameter + "') AND (CAST(Amount AS REAL) BETWEEN " + min_amount + " AND " + max_amount + ") AND Date BETWEEN Date(2012-01-02) AND Date(2014-01-02) ) ";
querylist = dbConn.Query<Passbook_transaction.Object>(query).ToList<Passbook_transaction.Object>(); ;
But its returning SQLite Exception.
The error seems to be in the "Date" because removing the date querying works.