Remaining days to a date is not showing correctly
问题 Ok, so I've created a function to show the number of days until a date in the future... It is correct until the amount of days is over 9 days.. if over it seems to show a random number of days... Please see my code below: public String daysTillExpire() { String daysLeft = ""; int position = 0 ; String inputDateString = UIDM.get(position).date; Calendar calCurr = Calendar.getInstance(); Calendar day = Calendar.getInstance(); try { day.setTime(new SimpleDateFormat("dd-MM-yyyy").parse