I am getting error out-of-range when I was trying to convert timestamp into date format.
long timeStamp = 1342049220104;
Timestamp stamp = new Timestamp(timeStamp);
Date date = new Date(stamp.getTime());
System.out.println(date);
The error that I got "The literal 1342049220104 of type int is out of range".