Example:
{
xtype: 'datefield',
width: 100,
id: 'mydate',
format: 'Y-m-d',
value: new Date(),
msgTarget: 'side',
emptyText : 'Please select a date. . . ',
name: 'mydate'
}
mydate.value is the same as getvalue().
mydate.getvalue() returns the object: Wed Mar 07 2007 00:00:00 GMT 0100
It can also be formatted using the following method: mydate.formatDate(myDate.getValue())) : 2007-03 -07
mydate.getRawValue() returns the display value of the control: 2007-03-07 (If the control defines a format, choose to return the format string)