How do I compare any date with the current date, without taking the year into account
问题 I want to compare the date with the current date, without taking the year into account, and I want to change the text for each day Here is my code TextView textView = (TextView)findViewById(R.id.textView); String valid_until = "7/3"; String valid_until1 = "8/3"; String valid_until2 = "9/3"; String valid_until3 = "10/3"; SimpleDateFormat sdf = new SimpleDateFormat("dd/MM"); Date strDate = null; Date strDate1 = null; Date strDate2 = null; Date strDate3 = null; try { strDate = sdf.parse(valid