I have a precompiled insertstatment that looks like this
this.insertStmt = this.db.compileStatement("INSERT INTO " + TABLE_NAME + " (name, date) VALUES (?, ?)");
I know how to bind the name
this.insertStmt.bindString(1, "Test");
But how can I solve this with a Date object?
SQLitedoes not have a storage class forDates. See the SQLite DataTypes.What I would recommend is to store your
Dateaslong, in anintegercolumn from your Database and when you fetch data from your database you could easily create aDateobject from yourCursorby using: