public static long stringToLong(String day, String format) throws ParseException {
        SimpleDateFormat dateFormat = new SimpleDateFormat(format);
        long date = dateFormat.parse(day).getTime();
        return date;
    }
@param day
@param format
@return long
@throws ParseException
core/src/main/java/com/dtstack/flink/sql/util/DateUtil.java