calendar.setTime(new SimpleDateFormat(format).parse((String) value));
return calendar;
}
catch (ParseException e)
{
throw new ConversionException("The value " + value + " can't be converted to a Calendar", e);
}
}
else
{
throw new ConversionException("The value " + value + " can't be converted to a Calendar");
}
}