Alex
Alex

Reputation: 509

How to change AngularJS ui-bootstrap date picker starting day

Is there a way to change the starting day for the ui-bootstrap date picker for AngularJS? At the moment, from left to right, the days starts Monday and ends on Sunday, and I would like the days to start on Saturday and end on Friday. Here is a plunker

<p class="input-group">
      <input type="text" class="form-control" uib-datepicker-popup="{{format}}" ng-model="dt" is-open="popup1.opened" datepicker-options="dateOptions" ng-required="true" close-text="Close" alt-input-formats="altInputFormats" />
      <span class="input-group-btn">
        <button type="button" class="btn btn-default" ng-click="open1()"><i class="glyphicon glyphicon-calendar"></i></button>
      </span>
    </p>

Upvotes: 0

Views: 1265

Answers (1)

Norbert Huurnink
Norbert Huurnink

Reputation: 1316

You already assign startingDay, put it to 6 and it will start on saturday.

Upvotes: 1

Related Questions