SimpleDateFormat formatter = new SimpleDateFormat("dd.MM.yyyy, HH:mm");
String time = formatter.format(new Date());
得到的时间(12.03.2012,17:31),现在我想这个时候毫秒转换,因为我有一对夫妇一个文件日期和文字,我希望将日期转换以毫秒为单位,使我不能使用
ContentValues values = new ContentValues();
values.put("address", "123");
values.put("body", "tekst");
values.put("read", 1);
values.put("date", HERE I MUST PUT A DATE IN MILLISECONDS);
context.getContentResolver().insert(Uri.parse("content://sms/inbox"), values);
添加在收件箱中的文本,因为我必须投入毫秒的时间我必须转换的时候,没有人知道如何?
一个简单的谷歌搜索会所做的工作,只是说。 – 2012-03-12 16:40:18