-
Datefield date year rollover
Datefield date year rollover
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,
-
Sencha - Senior Forum Manager
Ext JS isn't doing the "rollover", try this:
Code:
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.
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us