From how to store 6:00pm in sqlite database in android, I know that for SQLite, there is no data type “TIME”.
So, if I want to store time(year,month,day,hour,min,sec), how can I create that column? I should use “TEXT”?? But, how can I parse them for Android and
if I want to sort by time, how can I do it?
Thank for all your help!
From how to store 6:00pm in sqlite database in android , I know that
Share
You can define for yourself a date format (link) and you can create let’s say a
DateManagerclass to convert a date to a string (to store it in the SQLite database) and to convert a string into a date, both based on that date format specified by you.