I have the following code ,how should I change it from date to return type calendar ?
    Date date = new Date();
        SimpleDateFormat parsedDate = new SimpleDateFormat("yyyy-mm-dd");
        // TODO handle exception
        try {
            date = parsedDate.parse((String) memberValue);
        } catch (ParseException e) {
            e.printStackTrace();
        }
        return new SwitchInputType<Date>(date);
 
     
     
    