1

So when a date is picked it shows up month/day/ format, but I want it to be day/month/year

I tried this but it does not work: $.datepicker.formatDate( "dd-mm-yy");

Also Would it be possible to have a dropdown of years or an extra over arrow for years as well as months?

I haved look through the documentation and api but am lost as to where to put the code? in the soucre or in the html?

My example is located here Then click the create new user button.

4

1 回答 1

0

在初始化 datepicker 时将其添加到设置中:

$( ".datepicker" ).datepicker({ 
                        changeYear: true,       //enabled drop down for year
                        dateFormat: "dd-mm-yy"  //changes the format
                             });
于 2013-05-18T02:27:12.250 回答