Given input is year, monthe and day. Find the day of week.
public String getDay(int day, int month, int year) { LocalDate localDate = LocalDate.of(year, month, day); return localDate.getDayOfWeek().name(); // Example: WEDNESDAY }
Last updated 4 months ago
Was this helpful?