android - Storing date-time values -


from this link read best data type storing date-time values in sqlite integer.

what best format should used store current date , time said attribute? simpledateformat accepts strings, yet datatype integer.

you store time in milliseconds. retrieve date object simpledateformat , equivalent value in ms long milliseconds = date.gettime ();. store milliseconds


Comments

Popular posts from this blog

PHP Error "Undefined index" -

C# List<> to xml -

php - How to only save new tweets/instagram photos to database? -