<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="java.util.Date,java.text.SimpleDateFormat,java.util.Calendar,java.util.Map,java.util.HashMap,java.lang.Integer,java.lang.Boolean" %> <% SimpleDateFormat sdf103945 = new SimpleDateFormat("dd.M.yyyy"); Date currentDate103945 = new Date(); Date checkDate103945 = null; String checkMonth103945 = null; String[] generatedDates103945 = new String[0]; Map hasViewableDatesMap103945 = new HashMap(); for(String gDate : generatedDates103945){ Date parsedGDate = sdf103945.parse(gDate); Calendar cal = Calendar.getInstance(); cal.setTime(parsedGDate); Integer month = new Integer(cal.get(Calendar.MONTH) + 1); if(!hasViewableDatesMap103945.containsKey(month.toString())){ hasViewableDatesMap103945.put(month.toString(),Boolean.FALSE); } if(!parsedGDate.before(currentDate103945)){ hasViewableDatesMap103945.put(month.toString(), Boolean.TRUE); } } %>