In Android, is it possible to insert a time stamp into a database using ContentValues? When I try to add it using something like this:
ContentValues
ContentValue
Neither Date nor Calendar are valid things to put in a ContentValues. The most efficient format, I think, is to convert the Date to milliseconds (getTime()) and store that in an INTEGER column.
Date
Calendar
getTime()
INTEGER