There are alternative date formats which ExtJS will try to use if the datefield's value cannot be parsed using the configured format
. These formats can be defined using the altFormats
property.
By default the value is:
m/d/Y|n/j/Y|n/j/y|m/j/y|n/d/y|m/j/Y|n/d/Y|m-d-y|m-d-Y|m/d|m-d|md|mdy|mdY|d|Y-m-d
which explains why something like 21/17
gets converted to 9/17/2015
, as the format m/d
is used here (the "21st" month of 2014 is really the 9th of 2015).
If you want to disable this altogether, just set the property to an empty string:
altFormats: ''