62,623
社区成员
发帖
与我相关
我的任务
分享
System.currentTimeMillis();??
Date date=new Date();
SimpleDateFormat format= new SimpleDateFormat("yyyy-mm-dd hh:MM:ss");
String strdate=format.format(date);
try {
Date date1=format.parse(strdate);
pstmt3.setDate(date1);
} catch (ParseException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
Date date=new Date();
SimpleDateFormat format= new SimpleDateFormat("yyyy-mm-dd hh:MM:ss");
pstmt3.setDate( format.parse(date));
new java.sql.Date(date) ?