common_helper/src/main/java/com/xiongyingqi/util/DateHelper.java
public static Date strToDate(String strDate, DateFormat dateFormat) {
        ParsePosition pos = new ParsePosition(0);
        Date strtodate = dateFormat.parse(strDate, pos);
        return strtodate;
    }
public static Date strToDate(String strDate, DateFormat dateFormat) {
        ParsePosition pos = new ParsePosition(0);
        Date strtodate = dateFormat.parse(strDate, pos);
        return strtodate;
    }
public static Date strToDate ( String strDate , DateFormat dateFormat ) { ParsePosition pos = new ParsePosition ( 0 ) ; Date strtodate = dateFormat . parse ( strDate , pos ) ; return strtodate ; }
字符串转换为时间

@param strDate
@param dateFormat
@return
字符串转换为时间