get epoch time in java

59

how to convert epoch time to date in java -

String formatted = dateTime.format(DateTimeFormatter.ofPattern("dd/MM/yyyy HH:mm:ss"));

Comments

Submit
0 Comments