public boolean checkTimeFormat(String time) throws Exception {
Format f = new SimpleDateFormat("yyyyMMdd");
Date d = (Date) f.parseObject(time);
String format = f.format(d);
if (time.equals(format)) {
return true;
}else {
return false;
}
}