//使用Calendar类代表当前时间 Calendar c = Calendar.getInstance(); //年份 int yea = c.get(Calendar.YEAR); //月份 int month = c.get(Calendar.MONTH)+1; //日 int date = c.get(Calendar.DATE);
//使用Calendar类代表当前时间 Calendar c = Calendar.getInstance(); //年份 int yea = c.get(Calendar.YEAR); //月份 int month = c.get(Calendar.MONTH)+1; //日 int date = c.get(Calendar.DATE);