src/main/java/com/baidu/fsg/uid/utils/DateUtils.java
public static Date parseDate(String str, String pattern) {
        try {
            return parseDate(str, new String[]{pattern});
        } catch (ParseException e) {
            throw new RuntimeException(e);
        }
    }
/**
     * Parse date without Checked exception
     *
     * @param str
     * @param pattern
     * @return
     * @throws RuntimeException when ParseException occurred
     */
Parse date without Checked exception
@param str
@param pattern
@return
@throws RuntimeException when ParseException occurred
Parse date without Checked exception @param str @param pattern @return @throws RuntimeException when ParseException occurred
public static Date parseDate(String str, String pattern) {
        try {
            return parseDate(str, new String[]{pattern});
        } catch (ParseException e) {
            throw new RuntimeException(e);
        }
    }
public static Date parseDate ( String str , String pattern ) { try { return parseDate ( str , new String [ ] { pattern } ) ; } catch ( ParseException e ) { throw new RuntimeException ( e ) ; } }
Parse date without Checked exception
 @param str
 @param pattern
 @return
 @throws RuntimeException when ParseException occurred
Parse date without Checked exception @param str @param pattern @return @throws RuntimeException when ParseException occurred