// doesn't call for time).
//
JComponent fld = this.getFieldForAttr(i);
if (fld != null && fld instanceof DataField && DateTemplate.get(((DataField)fld)) != null) {
((DateTimeNullable)attr).setCurrent();
DateFormat fmt = new DateFormat(DateTemplate.get(((DataField)fld)));
TextData dateTxt = fmt.formatDate((DateTimeNullable)attr);
((DateTimeNullable)attr).decodeValue(dateTxt, fmt);
}
else {
((DateTimeNullable)attr).setCurrent();