You are viewing a single comment's thread. Return to all comments →
static String findDay(int month, int day, int year) { Calendar c = Calendar.getInstance(); String days[] = {"Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"}; c.set(year, month-1, day); return days[c.get(Calendar.DAY_OF_WEEK)-1].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 →