jQuery Datepicker localization

前端 未结 8 1267
我在风中等你
我在风中等你 2020-12-07 15:28

I need a french calendar and I can\'t understand the problem. I guess I\'m not using the regional options like it should be. But...

Here is my code :



        
相关标签:
8条回答
  • 2020-12-07 16:23

    If you want to include some options besides regional localization, you have to use $.extend, like this:

    $(function() {
       $('#Date').datepicker($.extend({
          showMonthAfterYear: false,
          dateFormat:'d MM, y'
        },
        $.datepicker.regional['fr']
      ));
    });
    
    0 讨论(0)
  • 2020-12-07 16:23

    I just Added

    jQuery.datetimepicker.setLocale('fr');
    

    and It's worked

    0 讨论(0)
提交回复
热议问题