开发者

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()
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜