parse exception (unparseable date)
<p>I am getting parse exception when i execute the below code.Can anyone please help me out</p>

<pre><code>private Boolean validateDateFormat(HttpSession session, PropertiesHandler props, String startDate,Date sqlDate) {
        logger.info("Enter validate");
        Boolean isvalid = true;
        HashMap hashMap = new LinkedHashMap();
        System.out.println("Entered validate block");
         if (startDate == null || startDate.equals("")) {
            isvalid = false;
            hashMap.put("date", props.getText("error.date.compare.cannotbeblank"));
            session.setAttribute("errorMessage", hashMap);
            System.out.println("Map size " + hashMap.size());
            logger.info("Exit validate");
            return isvalid;
        }

        ArrayList&lt;CalendarDatepicker&gt; calList = new ArrayList&lt;CalendarDatepicker&gt;();
        String whereClause = " cd.calendar_datepicker="+sqlDate;
        calList = (ArrayList&lt;CalendarDatepicker&gt;)dateTimePickerImpl.getCalendarDateDetailsByWhereClause(whereClause);
        System.out.append("appointment list size " + calList.size());
        if(calList.isEmpty())
        {
            isvalid=false;
            System.out.println("here");
           hashMap.put("date", props.getText("error.date.compare.incorrectformat"));
            session.setAttribute("errorMessage", hashMap);
            System.out.println("Map size " + hashMap.size());
            logger.info("Exit validate");
            return isvalid;  
        }
</code></pre>
