tags:

views:

13

answers:

2

How can I convert the long timestamp returned from getWhen into a readable date and time?

A: 

By using the Date(long) constructor

Riduidel
+1  A: 

You could try:

System.out.println(new Date(event.getWhen()));

For other representations you can try the SimpleDateFormatter.

rsp