jQuery UI DatePicker - Change Date Format

前端 未结 28 1785
后悔当初
后悔当初 2020-11-21 16:39

I am using the UI DatePicker from jQuery UI as the stand alone picker. I have this code:

And the

28条回答
  •  隐瞒了意图╮
    2020-11-21 17:16

    My option is given below:

    $(document).ready(function () {
      var userLang = navigator.language || navigator.userLanguage;
    
      var options = $.extend({},
        $.datepicker.regional["ja"], {
          dateFormat: "yy/mm/dd",
          changeMonth: true,
          changeYear: true,
          highlightWeek: true
        }
      );
    
      $("#japaneseCalendar").datepicker(options);
    });
    #ui-datepicker-div {
      font-size: 14px;
    }
    
    
    
        
        
        
        
        
    
    
    

    Japanese JQuery UI Datepicker

提交回复
热议问题