class DateUtil {

    public static String toDateString(Instant instant) {
        notNull(instant, "instant can't be null");
        val date = new Date(instant.getEpochSecond() * 1000);
        return buildDateFormat().format(date);
    }

}