How can i convert epoch time to date format?

if i have string that contain timemilis format,
how to convert the string to date format?

Thanks

.

Start here: https://docs.oracle.com/javase/8/docs/api/index.html?java/sql/Date.html

And here: http://docs.groovy-lang.org/latest/html/groovy-jdk/java/util/Date.html