I am using a displayfield to show a date. The field is bound to the view model. When it displays, it uses the verbose default date format. How can I apply a format to the bound value?
I get the right format if I use a datefield, but I don't want the look and feel of that widget.
Code:
{ xtype:'displayfield',
fieldLabel:'Submitted',
bind:'{theRequest.submitted}',
cls:'white-text',
labelWidth:80
}
I get the right format if I use a datefield, but I don't want the look and feel of that widget.
Aucun commentaire:
Enregistrer un commentaire