I don't know how to search on the internet:
Problem: I get the date in this format:
Mon Nov 14 13:30:00 MEZ 48472
and I would like to convert this with the following code but I dont know the start pattern:
SimpleDateFormat formatEnde = new SimpleDateFormat(" dd. MMM k:mm", java.util.Locale.getDefault());
I don't know, what does "48472" mean at the end and on the internet, I have not found anything.
My try is not working, because the pattern is not right:
SimpleDateFormat formatStart = new SimpleDateFormat("EEE MMM dd hh:mm:ss Z");
Can you help me please or give a link to any information?
This is my code to get Date as String:
long date = messages[i].getReceivedDate().getTime();
java.util.Date dateTime=new java.util.Date((long)date*1000);
String datum = String.valueOf(dateTime);
您可以尝试对输入的日期时间进行子字符串转换,然后将其转换为所需的任何格式,只是一个想法!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.