One more thing.... When I try this option in a Form it simply doesnt load the field data.
Its very strange, but it only works in grids.
That's my code (I only added the altFormat line).
Code:
columnWidth:.33,
border:false,
layout: 'anchor',
defaultType: 'textfield',
items: [{
xtype: 'datefield',
format: 'd/m/Y',
emptyText: 'dd/mm/aaaa',
altFormats: 'j/m/Y|j/n/Y|d/n/Y',
fieldLabel: 'Distribuição',
name: 'processo[data_distribuicao]',
dataIndex: 'processo[data_distribuicao]',
width: 120
},{
I must mention that I dont get any errors in javascript console...