SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss");
try {
Date d1 = sdf.parse(user.getValidStart());
Date d2 = sdf.parse(user.getValidEnd());
if(d1.after(d2)){
out.write("
failure");
return null;
}
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
out.write("failure");
return null;
}
阅读(7382) | 评论(0) | 转发(0) |