You are viewing a single comment's thread. Return to all comments →
Tried this too. But your code and my code, both not working here on this challenge.
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("dd/MM/yyyy"); LocalDate date = LocalDate.parse(day + "/" + month + "/" + year, formatter); DayOfWeek dow = date.getDayOfWeek(); String output = dow.getDisplayName(TextStyle.SHORT, Locale.US);
Seems like cookies are disabled on this browser, please enable them to open this website
Java Date and Time
You are viewing a single comment's thread. Return to all comments →
Tried this too. But your code and my code, both not working here on this challenge.