Calendar cal = Calendar.getInstance();
SimpleDateFormat dateFormatyes = new SimpleDateFormat("dd/MM/yyyy");
cal.add(Calendar.DATE, -1);
String yesterdaydate = dateFormatyes.format(cal.getTime());
Log.e("Date", "Yesterday Date was :" + yesterdaydate);
By:
Yours
V.k.Hooda
No comments:
Post a Comment