如何更改头文件格式n bootstrap datepicker?

时间:2015-11-25 15:24:05

标签: javascript jquery twitter-bootstrap datepicker

我在我的应用程序中使用bootstrap datepicker。

以下是我的代码,

<div class='input-group date' id='dtpCalendar'>
<input type='text' class="form-control" />
    <span class="input-group-addon">
        <span class="glyphicon glyphicon-calendar">
        </span>
     </span>
</div>

$('#dtpCalendar').datepicker({
            startView: "months",
            Default: 'MMMM',
            format: 'mm/dd',
            multidate: true
});

目前,datepicker如下所示,

calendar header format

我想将标题格式从MMMM YYYY更改为MMMM。

我尝试从bootstrap-datepicker.js更改以下代码,但它不起作用,

this.picker.find('#dtpCalendarthead .datepicker-switch')
                .text(DPGlobal.formatDate(new UTCDate(month), titleFormat, this.o.language));

我还能尝试什么?

0 个答案:

没有答案
相关问题