本帖最后由 liuch111 于 2015-8-31 10:07 编辑
Calendar calendar=Calendar.getInstance();
System.out.println(String.format("%tF",calendar));
calendar.add(Calendar.DAY_OF_YEAR, 100);
SimpleDateFormat sdf=new SimpleDateFormat("yyyy年MM月dd日");
String s=sdf.format(calendar.getTime());
System.out.println(s);
|