Bug Tracker

Opened 12 years ago

Closed 12 years ago

#9891 closed bug (invalid)

Validation of localized dates

Reported by: [email protected] Owned by:
Priority: low Milestone: None
Component: misc Version: 1.5.1
Keywords: Cc:
Blocked by: Blocking:


I have page with jquery.validate.js and date field. I use latest Chrome, IE and FF. The page locale and http headers locale setting to RU. Windows and browser locales also setted to RU.

The dates like 28.01.2011 (there is 01/28/2011 in US) cause "Please enter a valid date." validation message. (I use UI Datepicker to select date.)

I debug and find that validation function line: !/Invalid|NaN/.test(new Date(value))

cannot test localized date. I test Chrome. FF and IE all latest versions.

Googling trouble I found that http://stackoverflow.com/questions/2385474/set-a-locale-in-javascript - users have some problem.


  • this describe problem (at 2009 year!) and workarround that required to change jquery.validation script.

Are you can fix it?

Change History (1)

comment:1 Changed 12 years ago by addyosmani

Component: unfiledmisc
Priority: undecidedlow
Resolution: invalid
Status: newclosed

Thank you for submitting a ticket to the jQuery core bug tracker! Unfortunately, we are unable to assist with issues related to third party plugins or jQuery UI.

For assistance with the validation plugin, please directly contact the plugin author, either via their GitHub account or the plugin site. For UI issues, please re-submit your ticket to the jQuery UI bug tracker.

If they or you are able to reduce the issue experienced down to a problem with jQuery core that can be demonstrated outside of the plugin, we'll be happy to take another look at this.

Note: See TracTickets for help on using tickets.