나는 현재 날짜를 불러오고, 30 일을 추가 한 다음, 그 날짜를 문자열로 저장하려고한다.달력 날짜를 문자열로 변환 하시겠습니까?
// Set calendar for due date on invoice gui
Calendar cal = Calendar.getInstance();
// Add 30 days to the calendar for the due date
cal.add(Calendar.DATE, 30);
Date dueDate = cal.getTime();
dueDatestr = Calendar.toString(dueDate);
문제가 무엇입니까? 그 toString() 사용법은 약간 이상해 보입니다. –