我现在碰到了这样一个情况,我用 import java.sql.Date;int year = 2002; int month = 12; int day = 21; Date date= new Date(year,month,day); 但是,我在数据库见到的输入值是3903-12-21,我想知道这个3903是怎么得出来的。
Date public Date(int year, int month, int day) Deprecated. instead use the constructor Date(long date) Constructs a Date object initialized with the given year, month, and day. Parameters: year - year-1900 month - 0 to 11 day - 1 to 31
import java.sql.Date;int year = 2002;
int month = 12;
int day = 21;
Date date= new Date(year,month,day);
但是,我在数据库见到的输入值是3903-12-21,我想知道这个3903是怎么得出来的。
int month,
int day)
Deprecated. instead use the constructor Date(long date)
Constructs a Date object initialized with the given year, month, and day.
Parameters:
year - year-1900
month - 0 to 11
day - 1 to 31