목록JAVA (1)
아디봉의.net
[JAVA] 자바 날짜 오늘부터 30일후 셋팅
//날짜가 없으면 오늘부터 ~30일후 셋팅System.out.println("searchBtn>>>>>>>>>>");//포맷설정SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");Calendar cl = new GregorianCalendar(Locale.KOREA);Date date = new Date();cl.setTime(date);String betweenDt = sdf.format(date);//Date endDt = new Date();cl.add(cl.DATE, 30);String endDt = sdf.format(cl.getTime());/*String yearDt = String.valueOf(cl.get(cl.YEAR));String ..
JAVA
2013. 12. 24. 10:32