{xtype: 'datefield', id:'yearT', fieldLabel: "统计年份", editable: true, emptyText: "--请选择--", format: "Y",value:new Date().getFullYear()//获取当前系统年份}找了好几关于Ext时间设置以及取值的,都没有没有完整好用的。
借鉴了https://blog.csdn.net/superdog007/article/details/8090291和
和https://www.cnblogs.com/yueue/archive/2010/02/23/1672167.html
Ext.getCmp('yearT').formatDate(Ext.getCmp('yearT').getValue(),'Y')
"2018"