How can I convert the long timestamp
returned from getWhen
into a readable date and time?
views:
13answers:
2
+1
A:
You could try:
System.out.println(new Date(event.getWhen()));
For other representations you can try the SimpleDateFormatter
.
rsp
2010-09-13 09:23:04