PDA

View Full Version : current year in text field



mayurid
11 Jun 2010, 4:50 AM
hi,


m new to extjs
this might be silly to u but m not getting..

i want only current year (i.e 2010)to be displayed by default in text field in grid tool bar..

plsssssss help

wm003
11 Jun 2010, 5:09 AM
Ext.form.TextField({
value: new Date().format('Y')
});

mayurid
11 Jun 2010, 8:37 PM
Ext.form.TextField({
value: new Date().format('Y')
});


thanku...