For Example I have the date: \"23/2/2010\" (23th Feb 2010). I want to pass it to a function which would return the day of week. How can I do this?
I
... import java.time.LocalDate; ... //String month = in.next(); int mm = in.nextInt(); //String day = in.next(); int dd = in.nextInt(); //String year = in.next(); int yy = in.nextInt(); in.close(); LocalDate dt = LocalDate.of(yy, mm, dd); System.out.print(dt.getDayOfWeek());