Remove week column and button from Angular-ui bootstrap datepicker

Dipesh Gandhi picture Dipesh Gandhi · Dec 19, 2013 · Viewed 26.3k times · Source

I am using angular-ui bootstrap datepicker. Now I need to remove #(week) column and week button from datepicker. This date picker is being used in many forms of my application. I want to remove week column from all of them.

For this, I had globally configured the datepickerConfig (show-weeks) but still it is not working. Can anyone please let me know I am doing wrong with this?

Answer

Gm0t picture Gm0t · Dec 19, 2013

Please, look at this example: http://plnkr.co/edit/6i4G7JkvBiWXZYlrV2GL?p=preview

angular.module('app', ['ui.bootstrap'])
  .config(function (datepickerConfig) {
      datepickerConfig.showWeeks = false;
    });