how to convert epoch time to date in java code example Example: get epoch time in java long epochTime=System.currentTimeMillis();