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

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -