Ext version tested:

  • Ext 3.0.0



Adapter used:

  • ext



css used:

  • only default ext-all.css





Browser versions tested against:

  • ____
  • FF3 (firebug 1.4.5 installed)



Operating System:

  • ________
  • WinXP Pro



Description:

  • When entering an invalid date in the DatePicker, the message displays incorrectly, but this has already been noticed in http://www.extjs.com/forum/showthread.php?t=76619.
  • When this problem is solved according to the patch of that thread, there still is a problem: the message shows "xx is not a valid date - it must be in the format m/d/Y". "m/d/Y" is ok in english (though it would be better to have "mm/dd/yyyy") but in other languages the m, d and Y do not make sense.



See this URL : http://www.extjs.com/deploy/dev/exam...dv-vtypes.html

Debugging already done:

  • The problem lays in /widgets/form/DateField.js



Possible fix:

  • I would suggest the following patch in /widgets/form/DateField.js: add the config option:
    Code:
    formatForUser: "mm/dd/yyyy"
    and change the line
    Code:
    this.markInvalid(String.format(this.invalidText, svalue, this.format));
    to become
    Code:
    this.markInvalid(String.format(this.invalidText, svalue, this.formatForUser));
  • This would allow translators to add the "formatForUser" property to their translations.