if the value in milliseconds is the number of milliseconds elapsed since January 1, 1970 00:00:00.000 GMT
just use
new java.util.Date(millis);
and if you need it in a specific format
3/30/12 12:18:43 PM
then use SimpleDateFormatto format Datefor the desired formattedString
source
share