My question is I need to update an entry from the database which is of type "date". When i created a new activity called update activity in which I used edittext as to stored the updated date. Now I am getting an runtime error saying cannot convert date type variable to String. My model class has an Constructor which has a field with datatype as date type. If I change the "date" to String I get an compile error saying change the fields of the constructor.
Asked
Active
Viewed 37 times
0
-
3Please add your database structure, the entire error that you get and the lines of code that produces that. – Alex Mamo Jul 18 '19 at 13:52
-
Possible duplicate of [Insert & fetch java.time.LocalDate objects to/from an SQL database such as H2](https://stackoverflow.com/questions/43039614/insert-fetch-java-time-localdate-objects-to-from-an-sql-database-such-as-h2) – Ole V.V. Jul 19 '19 at 11:08
-
What is you (min) API level? – Ole V.V. Jul 19 '19 at 11:13