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.
- Prepare
- Java
- Introduction
- Java Date and Time
- Discussions
Java Date and Time
Java Date and Time
Sort by
recency
|
1514 Discussions
|
Please Login in order to post a comment
Find Out Day By Date, Year & Month
Calendar cald = Calendar.getInstance();
public static String findDay(int month, int day, int year) { Calendar cal = Calendar.getInstance(); cal.set(year, month-1, day); String weekDay = cal.getDisplayName(Calendar.DAY_OF_WEEK, Calendar.LONG, Locale.ENGLISH) .toUpperCase(); return weekDay; }
}
In Java 15 solution