I try to get the date of yesterday. So I write the next function:
public String getYestrday() { DateFormat dateFormat = new SimpleDateFormat(\"yyyy-MM-d
Use java.util.Calendar to do it. Or try JODA.
java.util.Calendar