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)
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn