java & javascript 요일 구하기
java public String getWeekDay(String day) { Calendar cal = Calendar.getInstance(); cal.set(Calendar.YEAR, Integer.parseInt(day.substring(0,4))); cal.set(Calendar.MONTH, Integer.parseInt(day.substring(4,6)) -1); cal.set(Calendar.DATE, Integer.parseInt(day.substring(6,8))); String[] dayOfWeek = {"일","월","화","수","목","금","토"}; String weekday = dayOfWeek[cal.get(Calendar.DAY_OF_WEEK)-1]; return weekd..
2013.03.11