I want to remove time from Date object.
Date
DateFormat df; String date; df = new SimpleDateFormat(\"dd/MM/yyyy\"); d = eventList.get(0).getStartDate
If you are using Java 8+, use java.time.LocalDate type instead.
LocalDate now = LocalDate.now(); System.out.println(now.toString());
The output:
2019-05-30
https://docs.oracle.com/javase/8/docs/api/java/time/LocalDate.html