/** {@inheritDoc} */ @Override public Object convertFromString( @SuppressWarnings("rawtypes") Map ctx, String[] value, @SuppressWarnings("rawtypes") Class arg2) { if (value[0] == null || value[0].trim().equals("")) { return null; } try { return DateUtil.convertStringToDate(value[0]); } catch (ParseException pe) { throw new TypeConversionException(pe.getMessage(), pe); } }
/** {@inheritDoc} */ @Override public String convertToString(@SuppressWarnings("rawtypes") Map ctx, Object data) { return DateUtil.convertDateToString((Date) data); }