标签:查找10天前日期
int fiandDate=-10;
SimpleDateFormat sdf = new SimpleDateFormat("yyyy年MM月dd日");
Date date = new Date();
Calendar calendar = new GregorianCalendar();
calendar.setTime(date);
//正数往后,负数往前
calendar.add(calendar.DATE, fiandDate);
date=calendar.getTime();
String putDate = sdf.format(date);
System.out.println(putDate);
标签:查找10天前日期
原文地址:http://blog.51cto.com/13618759/2088639