I try to get the date of yesterday. So I write the next function:
public String getYestrday() { DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-d
you can use Calendar class to do the same task:
Calendar c = new Calendar(); //c.add(Calendar.DAY_OF_MONTH, -1); Date d = c.getTime();