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 -

java - More than one row with the given identifier was found: 1, for class: com.model.Diagnosis -