public static String formatDate(Date date, String format) {
        SimpleDateFormat sdf = new SimpleDateFormat(format);
        return sdf.format(date);
    }
formatDate

@param date Data
@param format String
@return String
inlong-common/src/main/java/org/apache/inlong/common/util/StringUtil.java