What does the following code do? Calendar cal = Calendar.getInstance(); DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); cal.add(Calendar.DATE, -1); return dateFormat.format(cal.getTime());
Correct Answer: Get yesterday date and returns its formatted string
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More Android Programming MCQ Questions