본문 바로가기
study/JAVA

date 날짜 더하기

by stilinski 2022. 8. 28.
728x90
Calendar cal = Calendar.getInstance();
cal.setTime(searchForm.getTo());
cal.add(Calendar.DATE,1);
searchForm.setTo(new Date(cal.getTimeInMillis()));
728x90

댓글