i wonder how the setValue method of Ext.form.field.date work? A dummy example here:


var item = {
xtype: 'datefield',
anchor: '100%',
fieldLabel: 'From',
id: 'from',
name: 'from_date',
maxValue: new Date() // limited to the current date or prior
};
item.setValue(new Date());


the last line would give me an error, saying item.setValue is not a function. How can that be?