Is it possible localize jquery datapicker using globalize plugin (https://github.com/jquery/globalize)?
I tried in this way
// get a date format
var dt = Globalize.culture().calendar.patterns.d;
$('#dp1').datepicker({
dateFormat : dt
});
but it does not work because datepicker and globalize plugin use two format different.
I want the date with 2 digits for the month, 2 digits for the day and 4 digits for the year, so in jquery the date format must be "dd/mm/yy". But globalize use a different date format: en-Us -> M/d/yyyy it-IT -> dd/MM/yyyy
I bumped into many problems of those two format discrepancies. Finally jQuery guys replied me they would switch to Globalize format using. However, when... :(