|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
发信人: deboman (风雨无阻), 信区: Java
标 题: Re: JAVA中怎么得到现在的系统时间?
发信站: BBS 水木清华站 (Fri Jun 8 16:28:27 2001)
Date today=new Date(System.currentTimeMillis());
【 在 victer (黑灵) 的大作中提到: 】
: rt
发信人: socoo (socoo), 信区: Java
标 题: Re: JAVA中怎么得到现在的系统时间?
发信站: BBS 水木清华站 (Fri Jun 8 17:09:05 2001)
java.text.SimpleDateFormat formatter= new java.text.SimpleDateFormat
("yy-MM-dd");
java.util.Date currentTime_1 = new java.util.Date();
String dateString = formatter.format(currentTime_1);
return dateString;
【 在 victer (黑灵) 的大作中提到: 】
: rt |
|