PDA

View Full Version : DateField overflow



Allbus
23 May 2011, 11:42 PM
Hi,

in any DateField (see this example (http://dev.sencha.com/deploy/ext-3.3.1/examples/form/composite-field.html)) if you type something like 05/32/2011 when you lose focus the value is converted to 06/01/2011.

Is that desired? If yes, why?

Thank you!

friend
24 May 2011, 4:03 AM
This is expected behavior, where the DateField attempts to 'make sense' of a whacky user entry.

You can turn off this behavior but adding this snip of code somewhere in your application's setup:


Date.useStrict = true

Allbus
24 May 2011, 8:44 AM
Thank you!