lundi 7 juillet 2014

How do I apply a date format to a bound display field?

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?

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