Change datepicker display format

datepicker
angular js

In Angular js the bs-datepicker date format will be changed by adding below filter into your js file.

angular.module('test')
.config(function($datepickerProvider) {
  angular.extend($datepickerProvider.defaults, {
    dateFormat: 'MM-dd-yyyy',
    startWeek: 1
  });
});

 

You might also like:

Navigate to another page using java script

06-03-2017 javascript redirection navigation

Change datepicker display format

06-03-2017 datepicker angular js

How to remove last / value from url in javascript

27-02-2017 array javascript last value

Sample Validations in javascript

22-02-2017 validations javascript

Send Mail in Node Js

21-02-2017 node js mail npm module