This question already has an answer here:
- How can I get current date in Android? 11 answers
I am trying to insert current date in sqlite database with Date datatype.I tried this code but it says "Cannot resolve constructor Date()". How can i achieve this?
Code
Date date=new Date().getDate();
FunTubeDBOperations.addVideos(Filename,sdImageMainDirectory.length(),path,ed.getText(),date,UserName);
Aucun commentaire:
Enregistrer un commentaire