You can create a Date object with your long, where the long is the specified number of milliseconds since the standard base time known as "the epoch", namely January 1, 1970, 00:00:00 GMT. Use the following code.
Date yourDate = new Date(yourLong);
DateFormat formatter = new SimpleDateFormat("dd-MM-yyyy hh-MM-ss");
String formattedDate = formatter.format(yourDate);
Good luck.