<%@ page import="java.util.*, java.util.Calendar, java.util.Date, java.text.SimpleDateFormat"%> <% String toDate = new java.text.SimpleDateFormat("yyyy.MM.dd HH:mm:ss").format(new java.util.Date()); // 7일전 날짜 구하기 Calendar cal = Calendar.getInstance(); cal.add(cal.DATE,-7); String beforeOneWeek= cal.get(cal.YEAR)+"-"+(cal.get(cal.MONTH)+1)+"-"+cal.get(cal.DATE); %> <%= beforeOneWeek %> ~ <%= toDate %>
댓글 없음 :
댓글 쓰기