类型转换 //reqeust.getParameter获取字符串直接赋值 1 public static Date date(String date_str) { try { Calendar zcal = Calendar.getInstance();//日期类 Timestamp timestampnow = new Timestamp(zcal.getTimeInMillis());//转换成正常的日期格式 SimpleDateFormat formatter = new SimpleDa…