链接地址:http://blog.sina.com.cn/s/blog_483486840100vrjn.html

public static String afterNDay(int n){   
Calendar c=Calendar.getInstance();   
DateFormat df=new SimpleDateFormat("yyyy-MM-dd");   
c.setTime(new Date());   
c.add(Calendar.DATE,n);   
Date d2=c.getTime();   
String s=df.format(d2);   
return s;   
}  

相关文章:

  • 2022-12-23
  • 2021-11-17
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2021-11-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案