Calendar calendar = Calendar.getInstance();
int day = calendar.get(Calendar.DAY_OF_WEEK);
String today = "";
switch (day) {
	case Calendar.SUNDAY:
		today = "일";
		break;
	case Calendar.MONDAY:
		today = "월";
		break;
	case Calendar.TUESDAY:
		today = "화";
		break;
	case Calendar.WEDNESDAY:
		today = "수";
		break;
	case Calendar.THURSDAY:
		today = "목";
		break;
	case Calendar.FRIDAY:
		today = "금";
		break;
	case Calendar.SATURDAY:
		today = "토";
		break;
}

※ Calendar.SUNDAY == 1, Calendar.MONDAY == 2 ... 1++


저작자 표시 비영리 변경 금지
신고