Java DayOfWeek create from LocalDate
import java.time.DayOfWeek; import java.time.LocalDate; public class Main { public static void main(String[] args) { LocalDate ld = LocalDate.of(2020, 5, 10); DayOfWeek dw1 = DayOfWeek.from(ld); System.out.println(dw1);/*from ww w . j a va 2 s.co m*/ } }