Android: Convert date to milliseconds

后端 未结 7 1248
囚心锁ツ
囚心锁ツ 2021-01-02 13:01

I used

SimpleDateFormat formatter = new SimpleDateFormat("dd.MM.yyyy, HH:mm");
String time = formatter.format(new Date());

to get t

相关标签:
7条回答
  • 2021-01-02 13:56

    Use your date object and call date.getTime()

    0 讨论(0)
提交回复
热议问题