View Full Version : Datefield date year rollover

9 Oct 2012, 11:03 PM
Hello All,

I m using xtype:'datefield' , and when I am giving manual input as "3/3/33" to this datefield it is rollover automatically to "03/03/2033" ,

but I want it as "03/03/1933" is it possible to change this automatic rollover for year.

Also can I force user to enter 4 digits for year.

Thanks & Regards,

15 Oct 2012, 2:23 PM
Ext JS isn't doing the "rollover", try this:

new Date('03/03/33')

You will notice that JavaScript is doing the work so you would have to parse the string first or subtract 100 years.