You are viewing a single comment's thread. Return to all comments →
Or you can also do like this in Java 7 or 8:
Calendar c = Calendar.getInstance(); c.set(Integer.parseInt(year), Integer.parseInt(month)-1, Integer.parseInt(day)); System.out.println(c.getDisplayName(Calendar.DAY_OF_WEEK, Calendar.LONG, Locale.US).toUpperCase());
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 →
Or you can also do like this in Java 7 or 8: