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