public static Date parse(String dateString, String pattern) {
        try {
            Date date = getDateFormat(pattern).parse(dateString);
            return date;
        } catch (Exception e) {
            logger.warn("parse date error, dateString = {}, pattern={}; errorMsg = {}", dateString, pattern, e.getMessage());
            return null;
        }
    }
parse date

@param dateString
@param pattern
@return
@throws ParseException
larkmidtable-web/larkmt-core/src/main/java/com/larkmt/core/util/DateUtil.java