We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
importjava.time.LocalDate;publicclassSolution{publicstaticStringgetDay(Stringdd,Stringmm,Stringyy){LocalDatedt=LocalDate.of(Integer.parseInt(yy),Integer.parseInt(mm),Integer.parseInt(dd));returndt.getDayOfWeek()+"";}//this way will work
Java Date and Time
You are viewing a single comment's thread. Return to all comments →