I have two instances of Calender, expiryDate and nowDate. The date of expiryDate is set to 16 august 2020, nowDate gets the current date.
Calendar expiryDate = Calendar.getInstance();
Calendar nowDate = Calendar.getInstance();
expiryDate.set(Calendar.DAY_OF_MONTH, 16);
expiryDate.set(Calendar.MONTH, Calendar.AUGUST);
expiryDate.set(Calendar.YEAR, 2020);
What code can determine which instance has the latest date?