E1ED922C1E9526DD63272D7EC5C6CB77
2020-12-29 190d78bc9152b1fd366128dec100cc8a70a3a5d9
src/main/java/com/hx/util/DateUtil.java
@@ -216,8 +216,13 @@
     * @return
     * @throws Exception
     */
    public static Date parseString(String str) throws Exception {
    public static Date parseString(String str) {
        try {
        return Format_2.parse(str);
        }catch (Exception e)
        {
            return null;
        }
    }
    /**
@@ -228,9 +233,14 @@
     * @return
     * @throws Exception
     */
    public static Date parseString(String str, String format) throws Exception {
    public static Date parseString(String str, String format) {
        SimpleDateFormat sdf = new SimpleDateFormat(format);
        try{
        return sdf.parse(str);
        }catch (Exception e)
        {
            return null;
        }
    }
    /**字符串转成时间yyyy-MM-dd HH:mm:ss*/