DateTimeFormatter format = DateTimeFormat.forPattern("yyyy-MM-dd HH:mm:ss"); LocalDateTime test2 = new LocalDateTime(1597049566948); String dateString = test2.toString(format);