如何获取日期的毫秒时间?我有以下代码。
Date beginupd = new Date(cursor1.getLong(1));
这个变量beginupd包含格式
Wed Oct 12 11:55:03 GMT+05:30 2011
现在如何将此格式转换为 Long 数据类型中的毫秒时间? 任何帮助都非常感谢,并提前感谢...
最佳答案
long millisecond = beginupd.getTime();
Returns the number of milliseconds since January 1, 1970, 00:00:00 GMT represented by this Date object.
关于java - 如何将日期格式转换为毫秒?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7735705/