You are viewing a single comment's thread. Return to all comments →
Based on your answer, here's how I did it:
public static String getDay(String day, String month, String year) { int dd = Integer.parseInt(day); int mm = Integer.parseInt(month); int yy = Integer.parseInt(year); Date date = (new GregorianCalendar(yy,mm-1,dd)).getTime(); SimpleDateFormat f = new SimpleDateFormat("EEEE"); String stringDay = f.format(date); return stringDay.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 →
Based on your answer, here's how I did it: