Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6746253
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:18:03+00:00 2026-05-26T12:18:03+00:00

When using jQuery UI Datepicker, we encouter a problem when used in Google Chrome:

  • 0

When using jQuery UI Datepicker, we encouter a problem when used in Google Chrome:
when we enter a date with a day higher than 12, it does not accept it as a valid date, this is because chrome thinks the dateformat is mm/dd/yyyy. We tried to solve this by adding code to try to force the date settings into dd/mm/yyyy

$('.date').datepicker({ dateFormat: "dd/mm/yy" });

Is there any way to resolve this issue, so our datepicker will accept dd/mm/yyyy values?
We only have this issue in google Chrome, the datefix works for firefox, ie & safari.
We are using ASPX & MVC3 with this project.

If someone could solve our issue, that would be great

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T12:18:04+00:00Added an answer on May 26, 2026 at 12:18 pm

    I have had the same problem and is related with all Webkit based web browsers. If you set uppercase M the textbox show the moth with letters. The best solution for me was to override the validate date function from jquery.validate.js

    Create jquery.validate.date.js and ensure it is loaded after jquery.validate.js

    Add the following code to jquery.validate.date.js

    $(function() {
        $.validator.methods.date = function (value, element) {
            if ($.browser.webkit) {
    
                //ES - Chrome does not use the locale when new Date objects instantiated:
                var d = new Date();
    
                return this.optional(element) || !/Invalid|NaN/.test(new Date(d.toLocaleDateString(value)));
            }
            else {
    
                return this.optional(element) || !/Invalid|NaN/.test(new Date(value));
            }
        };
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using the jQuery datepicker where I have two textboxes (start date / end
I am using jQuery Datepicker and I have a little problem. If the datepicker
Hi i am using jquery-ui datepicker to select date and date.js to find difference
I'm using the JQuery DatePicker to have the user pick a date and have
I am using the jQuery Datepicker without any problem for TextBox controls that are
I am using the Jquery Datepicker found here . Does anyone know how I
I'm using the jQuery datepicker from jqueryui.com and I have a problem changing the
I am currently using jquery ui datepicker for forms that have date inputs. The
I'm using jquery ui datepicker with changeYear. The problem is that it shows the
I'm using jQuery DatePicker and it shows wrong date for November, 2009. You can

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.