开发者

how to store the time in android database

开发者 https://www.devze.com 2023-02-13 03:29 出处:网络
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.

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

精彩评论

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