import java.util.Date;Date today = new Date();int year = today.getYear();
int month = today.getMonth();
int day = today.getDay();......

解决方案 »

  1.   

    Date nowTime = new Date();
    rs.updateDate("your field",nowTime);
      

  2.   

    你直接在sql server中取得系统当前时间插入该字段不就行了。或者把当前字段的默认值改为当前时间。
      

  3.   

    D:\Tomcat4\work\Standalone\localhost\mytest\infocenter\sucsforacpt_jsp.java:126: cannot resolve symbol
    symbol  : method updateDate (java.lang.String,java.util.Date)
    location: interface java.sql.ResultSet
    rs.updateDate("SubmitTime",today);
      

  4.   

    java.sql.Date nowTime = new java.sql.Date(new Date().getTime());
    rs.updateDate("your field",nowTime);