I am trying to save 3 values in a database that I created on an Android device. Values: NAME, DATE, and TIME. So my question is: what is the best approach for retrieving and storing the current DATE and TIME values when they are inserted into the database?
So far, I have identified two ways to do this by making system calls in android, for example //values.put(TIME, System.currentTimeMillis());, or using SQL functions such as GETDATE(). But which is better?
If I'm heading in the wrong direction, let me know and point me in the right direction.
source
share