Получите эпохи на Java
long epochTime=System.currentTimeMillis();
dan1st
long epochTime=System.currentTimeMillis();
String formatted = dateTime.format(DateTimeFormatter.ofPattern("dd/MM/yyyy HH:mm:ss"));