注意SimpleDateFormat类
public class d{
public static void main(String args[]){
Calendar now=new Calendar();
in year=now.get(Calendar.YEAR);
.....
SimpleDateFormat fmt=new SimpleDateFormat("yyyy年MM月dd日hh小时mm分ss秒");
String aa=fmt.format(new java.util.Date());
}
}
阅读(542) | 评论(0) | 转发(0) |