I try to get the date of yesterday. So I write the next function:
public String getYestrday() { DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-d
Following works for me
int date = Calendar.getInstance().get(Calendar.DAY_OF_MONTH);