Converting Integer time stamp into java date [duplicate]

Assuming its the time since 1/1/1970 in seconds. you can try

String dateAsText = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss")
                          .format(new Date(1333125342 * 1000L));

Leave a Comment