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:

How to search text in string using php ?

29-10-2017 php search string search

How to submit form using javascript or jquery.

16-04-2017 javascript jquery submit form

Sanitization in java sript

14-03-2017 sanitization java script

Change datepicker display format

06-03-2017 datepicker angular js

How to find Angular Errors

06-03-2017 errors angularjs exceptionHandler