Don't use Date
as it is deprecated. Use LocalDate and DateTimeFormatter as follows.
LocalDate ld = LocalDate.parse("2020/05/06",
DateTimeFormatter.ofPattern("yyyy/MM/dd"));
int year = ld.getYear();
int month = ld.getMonthValue();
int day = ld.getDayOfMonth();
System.out.println(month + " " + day + " " + year);
Prints
5 6 2020
Check out the other date/time related classes in the java.time package.