//15天前日期
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
String startTime = df.format(new Date().getTime()-15*24*60*60*1000);
String endTime = df.format(new Date());
System.out.println(startTime);
System.out.println("***************************");
System.out.println(endTime);
//15天后日期
DateFormat df = new SimpleDateFormat("yyyy-MM-dd");
String startTime = df.format(new Date().getTime()+15*24*60*60*1000);
String endTime = df.format(new Date());
System.out.println(startTime);
System.out.println("***************************");
System.out.println(endTime);