当前位置: 技术问答>java相关
java.sql.Date和java.uitl.Date的问题?
来源: 互联网 发布时间:2015-09-05
本文导语: 我能将java.sql.Date中的值直接付给java.uitl.Date吗? 如果不行我该怎样转换? 请指教,谢谢! | Date public Date(intyear, intmonth, intday) Deprecated. ...
我能将java.sql.Date中的值直接付给java.uitl.Date吗?
如果不行我该怎样转换?
请指教,谢谢!
如果不行我该怎样转换?
请指教,谢谢!
|
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
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