麻烦博主:
我用eclipse 3.2.1 打开反编译还是报错
re: 字符串转日期或日期转字符串(转) mlw2000 2006-09-25 11:23
sql date 和 util date
String strDate = request.getParameter("over_year") + "-" + request.getParameter("over_month") + "-" + request.getParameter("over_day");
out.print(strDate);
java.text.SimpleDateFormat df = new java.text.SimpleDateFormat("yyyy-mm-dd");
java.util.Date cDate = df.parse(strDate);
java.sql.Date dd = new java.sql.Date(cDate.getTime());
out.print(dd.toString());