How to show week number in twitter bootstrap date picker

淺唱寂寞╮ 提交于 2019-12-19 21:21:22

问题


I"m using twitter bootstrap datepicker . refer the link http://www.eyecon.ro/bootstrap-datepicker/

I want to show week number like the following http://jsbin.com/omaqe/1/edit

I don't want to change the jquery plugin. I want to use only twitter bootstrap datepicker. How to show week number using this.

and

I want to show datepicker based on the culture. Please give me solution for this too..

Thank you for your effort to help me.


回答1:


In bootstrap datepicker, there is an option called calendarWeeks(a boolean dataType), Whether or not to show week numbers to the left of week rows.

$('#datepicker').datepicker({
    calendarWeeks: true
});

Fiddle



来源:https://stackoverflow.com/questions/20235989/how-to-show-week-number-in-twitter-bootstrap-date-picker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!