Link to home
Start Free TrialLog in
Avatar of ambuli
ambuliFlag for United States of America

asked on

Javascript Localization of datepicker

Hi there,
I want to localize the datepicker control.

I noticed that people suggesting regional property.  I tried
$('#FromDatePickerInputID').datepicker({
            dateFormat : 'yy-mm-dd',
           regional: 'fr',
        }).datepicker("setDate", new Date());
 

Open in new window

But it does not give the localized values.  How should I correct it.

$('#FromDatePickerInputID').datepicker({
            dateFormat : 'yy-mm-dd',
        }).datepicker("setDate", new Date());


     var fromDateInput = document.createElement("input");
        fromDateInput.maxLength = "10";
        fromDateInput.style.width = "80px";
        fromDateInput.id = "FromDatePickerInputID";
        fromDateInput.type = "text";

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of chaau
chaau
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial