column element may contain a nested formatter element that allows you to represent the attribute value in a format different from the standard for this Datatype, e.g.
So, I suggest using this approach for formatting your date values.
2. Sorting is disabled because table knows nothing about datatype of your column. To enable sorting for this column, I suggest creating a meta property for this value.
@MetaProperty
public Date getDocsReceiveDate() {
return getReceiveDate(getPurchaseOrder());
}
As I can see from your screenshot, you already have the right date formatting for your application and the only reason you need to add a custom formatting is a generated column. I suppose that adding a temporal type to a meta property will be enough to resolve your needs, e.g.
@Temporal(TemporalType.DATE)
@MetaProperty
public Date getDocsReceiveDate() {
return getReceiveDate(getPurchaseOrder());
}