how to store the time in android database
In my application, the time will be store for certain duration and it will 开发者_如何学Cstore in database,any one can help me to solve problem.
To Store Time In Database I hope this code help you.
SimpleDateFormat simpleDateFormat = new SimpleDateFormat(
"HH:mm:ss");
Date date = new Date();
And use this when storing in database.
simpleDateFormat.format(date).toString()
精彩评论