code: public static Date strToDateWithFormat(String strDate, Format format) {
          SimpleDateFormat localFormat = (SimpleDateFormat) format;
          ParsePosition pos = new ParsePosition(0);
          Date strtodate = localFormat.parse(strDate, pos);
          return strtodate;
      }
docs: 指定fotmat, 将String转化为util.Date
  
  @param strDate
  @param format
  
  @return
  
  @author kanghongwei