You are viewing a single comment's thread. Return to all comments →
Calendar c=Calendar.getInstance(); c.set(Integer.parseInt(year),Integer.parseInt(month)-1,Integer.parseInt(day)); return (String.format("%tA",c)).toUpperCase();
"%tA" format specifier will only show day of the entered arguments in set() function.
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 →
Calendar c=Calendar.getInstance(); c.set(Integer.parseInt(year),Integer.parseInt(month)-1,Integer.parseInt(day)); return (String.format("%tA",c)).toUpperCase();