I am using editText input type is date and i want that user will enter date in date format and store it in a datetime field of a table in sqlite. Is this possible? Because the editText date format is dd/mm/yyyy and in sqlite it is yyyy/mm/dd.
I have designed one form on which there is a edit text by which user will enter a date and i want to store this date in sqlite whose field’s type is datetime.How to do it? I am new to android so if anybody know the solution please provide me the answer.
I have solved my issue:
I have used textview,datepicker and a button in date_picker_demo.xml saved in layout.
DatePicker.java
DatabaseHelper.java
Date is inserted in database successfully.