Change datepicker display format

angular js

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

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


You might also like:

Time Sorting Ascending or Descending Order in Javascript

19-07-2017 Javascript ascending order descending order

How to redirect one page to another page in php

20-03-2017 redirect php

Filter for change Date format (MM-dd-yyyy) in Angular Js

05-03-2017 mm-dd-yyyy date formats angular js

Filters for convert text to camel case in Angular Js

05-03-2017 angularjs camelcase filters

How to remove last / value from url in javascript

27-02-2017 array javascript last value