private String getZuoDay() {
Calendar cal=Calendar.getInstance();
cal.add(Calendar.DATE,-1);
Date d=cal.getTime();
SimpleDateFormat sp=new SimpleDateFormat("yyyy-MM-dd");
String ZUOTIAN=sp.format(d);//获取昨天日期
return ZUOTIAN;
}
private String getZuoDay() {
Calendar cal=Calendar.getInstance();
cal.add(Calendar.DATE,-1);
Date d=cal.getTime();
SimpleDateFormat sp=new SimpleDateFormat("yyyy-MM-dd");
String ZUOTIAN=sp.format(d);//获取昨天日期
return ZUOTIAN;
}